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:
68986ba
)
libDtSearch: Coverity 86762
author
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 21:51:16 +0000
(22:51 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 21:51:16 +0000
(22:51 +0100)
cde/lib/DtSearch/raima/pathfcns.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtSearch/raima/pathfcns.c
b/cde/lib/DtSearch/raima/pathfcns.c
index 75a2dd780891125d41ff19a1f4b8359a062f3dcb..3e8743fdc95122816dabb65f4c3f819e1cb4c021 100644
(file)
--- a/
cde/lib/DtSearch/raima/pathfcns.c
+++ b/
cde/lib/DtSearch/raima/pathfcns.c
@@
-212,7
+212,7
@@
int num /* Element to extract (0 = first) */
if (dbxpath == NULL) return (NULL);
if (dbxpath[0] == '\0') return (NULL); /* NULL string? */
- s
trcpy(element,
dbxpath);
+ s
nprintf(element, sizeof(element), "%s",
dbxpath);
/* If there is only one element, always return that */
if (strchr(element,';') == NULL) {