mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
fix possible NULL-pointer dereference in deh_procStringSub()
This commit is contained in:
parent
6039293aca
commit
cf6a7595cd
@ -2575,7 +2575,7 @@ boolean deh_procStringSub(char *key, char *lookfor, char *newstring, FILE *fpout
|
|||||||
if (!key)
|
if (!key)
|
||||||
if (fpout) fprintf(fpout,
|
if (fpout) fprintf(fpout,
|
||||||
"Assigned '%.12s%s' to'%.12s%s' at key %s\n",
|
"Assigned '%.12s%s' to'%.12s%s' at key %s\n",
|
||||||
lookfor, (strlen(lookfor) > 12) ? "..." : "",
|
lookfor ? : "", (lookfor && strlen(lookfor) > 12) ? "..." : "",
|
||||||
newstring, (strlen(newstring) > 12) ? "..." :"",
|
newstring, (strlen(newstring) > 12) ? "..." :"",
|
||||||
deh_strlookup[i].lookup);
|
deh_strlookup[i].lookup);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user