lib/header_internal.c (headerGetLangs): Fix stupid X<=Y<=Z comparison
(cherry picked from commit 4ce1b4bead
)
This commit is contained in:
parent
d32efd14bf
commit
04d5860a7b
@ -21,7 +21,7 @@ char ** headerGetLangs(Header h)
|
|||||||
if ((table = (char **)xcalloc((count+1), sizeof(char *))) == NULL)
|
if ((table = (char **)xcalloc((count+1), sizeof(char *))) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
for (i = 0, e = *s; i < count > 0; i++, e += strlen(e)+1)
|
for (i = 0, e = *s; i < count; i++, e += strlen(e)+1)
|
||||||
table[i] = e;
|
table[i] = e;
|
||||||
table[count] = NULL;
|
table[count] = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user