projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix off by 1 error
[rrdtool.git]
/
src
/
rrd_getopt.c
diff --git
a/src/rrd_getopt.c
b/src/rrd_getopt.c
index
5f938f3
..
7d157a0
100644
(file)
--- a/
src/rrd_getopt.c
+++ b/
src/rrd_getopt.c
@@
-39,10
+39,11
@@
#endif
#endif
#endif
#endif
-
+#ifndef WIN32
#ifdef HAVE_CONFIG_H
#include "../rrd_config.h"
#endif
#ifdef HAVE_CONFIG_H
#include "../rrd_config.h"
#endif
+#endif
#include "rrd_i18n.h"
#include "rrd_i18n.h"
@@
-395,7
+396,7
@@
static const char* _getopt_initialize(int argc,
considered as options. */
char var[100];
considered as options. */
char var[100];
- s
printf(
var, "_%d_GNU_nonoption_argv_flags_", getpid());
+ s
nprintf(var, sizeof
var, "_%d_GNU_nonoption_argv_flags_", getpid());
nonoption_flags = getenv(var);
if (nonoption_flags == NULL)
nonoption_flags_len = 0;
nonoption_flags = getenv(var);
if (nonoption_flags == NULL)
nonoption_flags_len = 0;