a6d9b896ef
with some tweaks from me.
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
$OpenBSD: patch-src_main_CommandLineArgs_c,v 1.5 2008/10/26 23:04:00 mbalmer Exp $
|
|
--- src/main/CommandLineArgs.c.orig Sun Sep 21 22:05:26 2008
|
|
+++ src/main/CommandLineArgs.c Sat Oct 25 22:43:34 2008
|
|
@@ -192,7 +192,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);
|
|
}
|
|
@@ -203,7 +203,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;
|
|
@@ -211,7 +211,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
|