Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 78118 | Differences between
and this patch

Collapse All | Expand All

(-)lib/libxview/base/xv_parse.c~ (-3 / +3 lines)
Lines 312-318 xv_parse_one(app_name, argc, argv) Link Here
312
    if (argc <= slot->num_args) {
312
    if (argc <= slot->num_args) {
313
	char            dummy[128];
313
	char            dummy[128];
314
314
315
	(void) sprintf(dummy, 
315
	(void) snprintf(dummy, sizeof(dummy),
316
			XV_MSG("%s: missing argument after %s"), 
316
			XV_MSG("%s: missing argument after %s"), 
317
			app_name,
317
			app_name,
318
		       argv[0]);
318
		       argv[0]);
Lines 392-398 xv_parse_one(app_name, argc, argv) Link Here
392
	if (defaults_lookup(argv[1], known_scales) == -1) {
392
	if (defaults_lookup(argv[1], known_scales) == -1) {
393
		char dummy[1024];
393
		char dummy[1024];
394
		
394
		
395
		(void) sprintf(dummy, 
395
		(void) snprintf(dummy, sizeof(dummy),
396
			XV_MSG("%s: unknown scale \"%s\" used with %s option"),
396
			XV_MSG("%s: unknown scale \"%s\" used with %s option"),
397
			       app_name, argv[1], argv[0]);
397
			       app_name, argv[1], argv[0]);
398
		xv_error(XV_NULL,
398
		xv_error(XV_NULL,
Lines 611-617 NegArg: Link Here
611
    {
611
    {
612
	char            dummy[128];
612
	char            dummy[128];
613
613
614
	(void) sprintf(dummy, 
614
	(void) snprintf(dummy, sizeof(dummy),
615
		XV_MSG("%s: can't have negative argument %s after %s"),
615
		XV_MSG("%s: can't have negative argument %s after %s"),
616
		       app_name, argv[bad_arg], argv[0]);
616
		       app_name, argv[bad_arg], argv[0]);
617
	xv_error(XV_NULL,
617
	xv_error(XV_NULL,

Return to bug 78118