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:
5854fdc
)
libDtSearch: Coverity 86780
author
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 21:55:42 +0000
(22:55 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 21:55:42 +0000
(22:55 +0100)
cde/lib/DtSearch/ocf.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtSearch/ocf.c
b/cde/lib/DtSearch/ocf.c
index 3499ea084772096a1864c01dcbd9b08cea4fd5ec..61e78f40c22a7f18c437bbed84eaad9e597ee8c7 100644
(file)
--- a/
cde/lib/DtSearch/ocf.c
+++ b/
cde/lib/DtSearch/ocf.c
@@
-1055,7
+1055,8
@@
OCFOPEN_OK:
/* parse KEYWORD */
if ((token = _XStrtok(inbuf, DELIMITERS, strtok_buf)) == NULL)
continue;
- strcpy (uprtoken, token);
+
+ snprintf(uprtoken, sizeof(uprtoken), "%s", token);
strupr (uprtoken);
if (strcmp (uprtoken, "PATH") == 0) {