Fix compare signed with unsigned in python interface for pythonmod

git-svn-id: file:///svn/unbound/trunk@4968 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2018-11-22 13:07:37 +00:00
parent de0b6da9f4
commit 668c0627c0
+1 -1
View File
@@ -53,7 +53,7 @@
i = 0; cnt = 0;
while (i < len) {
char buf[LDNS_MAX_LABELLEN+1];
if(((unsigned int)name[i])+1 <= (int)sizeof(buf)) {
if(((unsigned int)name[i])+1 <= (unsigned int)sizeof(buf)) {
memmove(buf, name + i + 1, (unsigned int)name[i]);
buf[(unsigned int)name[i]] = 0;
PyList_SetItem(list, cnt, PyString_FromString(buf));