diff --git a/cde/programs/dtfile/SharedProcs.c b/cde/programs/dtfile/SharedProcs.c index b57c3f7e6..51a10554c 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);