getopt.c changed a sprintf call to the more secure snprintf
This commit is contained in:
parent
e15ed4c7b9
commit
059b4ae440
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* wsesslog.c changed a sprintf call to the more secure snprintf
|
* wsesslog.c changed a sprintf call to the more secure snprintf
|
||||||
|
|
||||||
|
*getopt.c changed a sprintf call to the more secure snprintf
|
||||||
|
|
||||||
2007-01-20 Ted Bullock <tbullock@canada.com>
|
2007-01-20 Ted Bullock <tbullock@canada.com>
|
||||||
|
|
||||||
* Included the shell script autogen.sh to compile the necessary
|
* Included the shell script autogen.sh to compile the necessary
|
||||||
|
@ -353,7 +353,7 @@ _getopt_initialize (optstring)
|
|||||||
file name wildcard expansion and therefore should not be
|
file name wildcard expansion and therefore should not be
|
||||||
considered as options. */
|
considered as options. */
|
||||||
char var[100];
|
char var[100];
|
||||||
sprintf (var, "_%d_GNU_nonoption_argv_flags_", getpid ());
|
snprintf (var, sizeof(var), "_%d_GNU_nonoption_argv_flags_", getpid ());
|
||||||
nonoption_flags = getenv (var);
|
nonoption_flags = getenv (var);
|
||||||
if (nonoption_flags == NULL)
|
if (nonoption_flags == NULL)
|
||||||
nonoption_flags_len = 0;
|
nonoption_flags_len = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user