fixed potential overflow :)
Tento commit je obsažen v:
rodič
0fb49ec91f
revize
7149d0d028
@ -227,8 +227,8 @@ bool run(const char *path, const char *eventfile, const char *outfile, uint32_t
|
|||||||
const char *argv0 = memrchr(path, '/', strlen(path));
|
const char *argv0 = memrchr(path, '/', strlen(path));
|
||||||
argv0 = ( argv0 == NULL ) ? path : argv0+1;
|
argv0 = ( argv0 == NULL ) ? path : argv0+1;
|
||||||
|
|
||||||
char envvar[19];
|
char envvar[30];
|
||||||
sprintf(envvar, "adhocifyevent=%"PRIu32, mask);
|
snprintf(envvar, 30, "adhocifyevent=%"PRIu32, mask);
|
||||||
putenv(envvar);
|
putenv(envvar);
|
||||||
|
|
||||||
execl(path, argv0, (! noappend) ? eventfile : NULL, NULL);
|
execl(path, argv0, (! noappend) ? eventfile : NULL, NULL);
|
||||||
|
Načítá se…
Odkázat v novém úkolu
Zablokovat Uživatele