mirror of git://git.musl-libc.org/musl
another pointer signedness fix
This commit is contained in:
parent
a8c17e6587
commit
6fbf8bfd75
|
@ -46,7 +46,7 @@ int __dns_doqueries(unsigned char *dest, const char *name, int *rr, int rrcnt)
|
||||||
/* Construct query template - RR and ID will be filled later */
|
/* Construct query template - RR and ID will be filled later */
|
||||||
if (strlen(name)-1 >= 254U) return -1;
|
if (strlen(name)-1 >= 254U) return -1;
|
||||||
q[2] = q[5] = 1;
|
q[2] = q[5] = 1;
|
||||||
strcpy(q+13, name);
|
strcpy((char *)q+13, name);
|
||||||
for (i=13; q[i]; i=j+1) {
|
for (i=13; q[i]; i=j+1) {
|
||||||
for (j=i; q[j] && q[j] != '.'; j++);
|
for (j=i; q[j] && q[j] != '.'; j++);
|
||||||
if (j-i-1u > 62u) return -1;
|
if (j-i-1u > 62u) return -1;
|
||||||
|
|
Loading…
Reference in New Issue