31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
$OpenBSD: patch-src_main_CommandLineArgs_c,v 1.7 2012/10/29 11:07:29 dcoppa Exp $
|
|
--- src/main/CommandLineArgs.c.orig Tue Aug 28 00:05:06 2012
|
|
+++ src/main/CommandLineArgs.c Fri Oct 26 10:05:45 2012
|
|
@@ -191,7 +191,7 @@ R_common_command_line(int *pac, char **argv, Rstart Rp
|
|
!strcmp(*av, "-V") ||
|
|
!strcmp(*av, "-n") ||
|
|
!strcmp(*av, "-v")) {
|
|
- snprintf(msg, 1024,
|
|
+ snprintf(msg, sizeof(msg),
|
|
_("WARNING: option '%s' no longer supported"), *av);
|
|
R_ShowMessage(msg);
|
|
}
|
|
@@ -202,7 +202,7 @@ R_common_command_line(int *pac, char **argv, Rstart Rp
|
|
if(ac > 1) {ac--; av++; p = *av;} else p = NULL;
|
|
} else p = &(*av)[12];
|
|
if (p == NULL) {
|
|
- snprintf(msg, 1024,
|
|
+ snprintf(msg, sizeof(msg),
|
|
_("WARNING: no value given for '%s'"), *av);
|
|
R_ShowMessage(msg);
|
|
break;
|
|
@@ -212,7 +212,7 @@ R_common_command_line(int *pac, char **argv, Rstart Rp
|
|
value = R_Decode2Long(p, &ierr);
|
|
if(ierr) {
|
|
if(ierr < 0)
|
|
- snprintf(msg, 1024,
|
|
+ snprintf(msg, sizeof(msg),
|
|
_("WARNING: '%s' value is invalid: ignored"),
|
|
*av);
|
|
else
|