31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
$OpenBSD: patch-src_main_CommandLineArgs_c,v 1.4 2007/10/07 17:54:54 mbalmer Exp $
|
|
--- src/main/CommandLineArgs.c.orig Wed Sep 5 00:13:27 2007
|
|
+++ src/main/CommandLineArgs.c Sun Oct 7 09:58:19 2007
|
|
@@ -196,7 +196,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\n"), *av);
|
|
R_ShowMessage(msg);
|
|
}
|
|
@@ -207,7 +207,7 @@ R_common_command_line(int *pac, char **argv, Rstart Rp
|
|
}
|
|
else p = &(*av)[12];
|
|
if (p == NULL) {
|
|
- snprintf(msg, 1024,
|
|
+ snprintf(msg, sizeof(msg),
|
|
_("WARNING: no value given for '%s'\n"), *av);
|
|
R_ShowMessage(msg);
|
|
break;
|
|
@@ -215,7 +215,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\n"),
|
|
*av);
|
|
else
|