dtfile/SharedProcs.c: coverity CID 174852; int overflow
This commit is contained in:
@@ -1656,7 +1656,7 @@ _DtPathFromInput(
|
||||
|
||||
if (read_ok)
|
||||
{
|
||||
command[strlen(command)-1] = '\0';
|
||||
command[MAXPATHLEN-1] = '\0';
|
||||
XtFree(path);
|
||||
path = XtNewString(command);
|
||||
pclose(pfp);
|
||||
|
||||
Reference in New Issue
Block a user