openbsd-ports/x11/fltk/patches/patch-src_Fl_Preferences_cxx
pascal e65efca9b3 Update to latest version 1.3.0, remove USE_GROFF, give more accurate license,
use SUBST_CMD instead of perl and fix the version reported by fltk-config.

ok landry@
2012-08-04 18:07:03 +00:00

13 lines
505 B
Plaintext

$OpenBSD: patch-src_Fl_Preferences_cxx,v 1.3 2012/08/04 18:07:03 pascal Exp $
--- src/Fl_Preferences.cxx.orig Wed Jan 19 07:33:48 2011
+++ src/Fl_Preferences.cxx Fri May 25 11:59:39 2012
@@ -1088,7 +1088,7 @@ Fl_Preferences::RootNode::RootNode( Fl_Preferences *pr
break;
}
case SYSTEM:
- strcpy(filename, "/etc/fltk/");
+ strlcpy(filename, "${SYSCONFDIR}/fltk/", sizeof(filename));
break;
}
snprintf(filename + strlen(filename), sizeof(filename) - strlen(filename),