lib/header_internal.c (headerGetLangs): Fix stupid X<=Y<=Z comparison

This commit is contained in:
Дмитрий Левин 2008-10-20 11:49:04 +00:00
parent fe6df19341
commit 4ce1b4bead

View File

@ -21,7 +21,7 @@ char ** headerGetLangs(Header h)
if ((table = (char **)xcalloc((count+1), sizeof(char *))) == 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[count] = NULL;