From: Jon Trulson Date: Sun, 1 Apr 2018 01:12:32 +0000 (-0600) Subject: dtfile/SharedProcs.c: coverity CID 174852; int overflow X-Git-Tag: 2.2.4a~152 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b4c4fb594d36a40b94abf8f7633d3e0f48b148ba;p=oweals%2Fcde.git dtfile/SharedProcs.c: coverity CID 174852; int overflow --- diff --git a/cde/programs/dtfile/SharedProcs.c b/cde/programs/dtfile/SharedProcs.c index b57c3f7e..51a10554 100644 --- a/cde/programs/dtfile/SharedProcs.c +++ b/cde/programs/dtfile/SharedProcs.c @@ -1656,7 +1656,7 @@ _DtPathFromInput( if (read_ok) { - command[strlen(command)-1] = '\0'; + command[MAXPATHLEN-1] = '\0'; XtFree(path); path = XtNewString(command); pclose(pfp);