1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

libDtSearch: Coverity 87032

This commit is contained in:
Peter Howkins 2018-07-02 23:09:29 +01:00
parent 889650ea45
commit f0917ee2b5

View file

@ -138,7 +138,7 @@ void gen_vec (char *fname_huffcode_tab)
continue; continue;
/* current character has LITERAL CODE */ /* current character has LITERAL CODE */
strcpy (temp, huff_code[LITERAL_NUM]); snprintf(temp, sizeof(temp), "%s", huff_code[LITERAL_NUM]);
*(code_length + i) = *(code_length + LITERAL_NUM) + 8; *(code_length + i) = *(code_length + LITERAL_NUM) + 8;
ch = (unsigned char) i; ch = (unsigned char) i;
for (j = 0; j < 8; j++) { for (j = 0; j < 8; j++) {