projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9412da7
)
dtfile/SharedProcs.c: coverity CID 174852; int overflow
author
Jon Trulson
<jon@radscan.com>
Sun, 1 Apr 2018 01:12:32 +0000
(19:12 -0600)
committer
Jon Trulson
<jon@radscan.com>
Sun, 1 Apr 2018 01:12:32 +0000
(19:12 -0600)
cde/programs/dtfile/SharedProcs.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtfile/SharedProcs.c
b/cde/programs/dtfile/SharedProcs.c
index b57c3f7e639fbbf1cb64a6d0506eea7b8133e5cc..51a10554c8626edbc4cd158669fd6c426228d071 100644
(file)
--- 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);