1
0
Derivar 0

fixed potential overflow :)

Este cometimento está contido em:
Albert S. 2013-09-30 20:10:22 +02:00
ascendente 0fb49ec91f
cometimento 7149d0d028
1 ficheiros modificados com 2 adições e 2 eliminações

Ver ficheiro

@ -227,8 +227,8 @@ bool run(const char *path, const char *eventfile, const char *outfile, uint32_t
const char *argv0 = memrchr(path, '/', strlen(path));
argv0 = ( argv0 == NULL ) ? path : argv0+1;
char envvar[19];
sprintf(envvar, "adhocifyevent=%"PRIu32, mask);
char envvar[30];
snprintf(envvar, 30, "adhocifyevent=%"PRIu32, mask);
putenv(envvar);
execl(path, argv0, (! noappend) ? eventfile : NULL, NULL);