1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

libDtSearch: Coverity 86780

This commit is contained in:
Peter Howkins 2018-07-02 22:55:42 +01:00
parent 5854fdca38
commit d7225fde79

View file

@ -1055,7 +1055,8 @@ OCFOPEN_OK:
/* parse KEYWORD */
if ((token = _XStrtok(inbuf, DELIMITERS, strtok_buf)) == NULL)
continue;
strcpy (uprtoken, token);
snprintf(uprtoken, sizeof(uprtoken), "%s", token);
strupr (uprtoken);
if (strcmp (uprtoken, "PATH") == 0) {