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:
889650e
)
libDtSearch: Coverity 87032
author
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 22:09:29 +0000
(23:09 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 22:09:29 +0000
(23:09 +0100)
cde/lib/DtSearch/hencode.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtSearch/hencode.c
b/cde/lib/DtSearch/hencode.c
index 32695067df51293834dfc4b876d20d4158743a83..5b42a318b4c7b660fb7fec9e76cbeab0a1c60709 100644
(file)
--- a/
cde/lib/DtSearch/hencode.c
+++ b/
cde/lib/DtSearch/hencode.c
@@
-138,7
+138,7
@@
void gen_vec (char *fname_huffcode_tab)
continue;
/* current character has LITERAL CODE */
- s
trcpy (temp
, huff_code[LITERAL_NUM]);
+ s
nprintf(temp, sizeof(temp), "%s"
, huff_code[LITERAL_NUM]);
*(code_length + i) = *(code_length + LITERAL_NUM) + 8;
ch = (unsigned char) i;
for (j = 0; j < 8; j++) {