diff options
Diffstat (limited to 'x11/xview-lib/patches/patch-fa')
-rw-r--r-- | x11/xview-lib/patches/patch-fa | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/x11/xview-lib/patches/patch-fa b/x11/xview-lib/patches/patch-fa new file mode 100644 index 00000000000..276c1efc453 --- /dev/null +++ b/x11/xview-lib/patches/patch-fa @@ -0,0 +1,31 @@ +$NetBSD: patch-fa,v 1.1 2005/02/10 11:03:53 drochner Exp $ + +--- lib/libxview/base/xv_parse.c.orig 2005-02-10 12:41:57.000000000 +0100 ++++ lib/libxview/base/xv_parse.c +@@ -312,7 +312,7 @@ xv_parse_one(app_name, argc, argv) + if (argc <= slot->num_args) { + char dummy[128]; + +- (void) sprintf(dummy, ++ (void) snprintf(dummy, sizeof(dummy), + XV_MSG("%s: missing argument after %s"), + app_name, + argv[0]); +@@ -392,7 +392,7 @@ xv_parse_one(app_name, argc, argv) + if (defaults_lookup(argv[1], known_scales) == -1) { + char dummy[1024]; + +- (void) sprintf(dummy, ++ (void) snprintf(dummy, sizeof(dummy), + XV_MSG("%s: unknown scale \"%s\" used with %s option"), + app_name, argv[1], argv[0]); + xv_error(XV_NULL, +@@ -611,7 +611,7 @@ NegArg: + { + char dummy[128]; + +- (void) sprintf(dummy, ++ (void) snprintf(dummy, sizeof(dummy), + XV_MSG("%s: can't have negative argument %s after %s"), + app_name, argv[bad_arg], argv[0]); + xv_error(XV_NULL, |