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);