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

dtfile/SharedProcs.c: coverity CID 174852; int overflow

This commit is contained in:
Jon Trulson 2018-03-31 19:12:32 -06:00
parent 9412da725b
commit b4c4fb594d

View file

@ -1656,7 +1656,7 @@ _DtPathFromInput(
if (read_ok)
{
command[strlen(command)-1] = '\0';
command[MAXPATHLEN-1] = '\0';
XtFree(path);
path = XtNewString(command);
pclose(pfp);