Use size_t for strlen results
authorAndreas Schwab <schwab@redhat.com>
Wed, 20 Jul 2011 15:40:37 +0000 (11:40 -0400)
committerUlrich Drepper <drepper@gmail.com>
Wed, 20 Jul 2011 15:40:37 +0000 (11:40 -0400)
ChangeLog
resolv/res_query.c

index 69f134d..b453585 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-20  Andreas Schwab  <schwab@redhat.com>
+
+       * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
+       strlen results.
+
 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
        * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
index 26daf0d..2f7cfaa 100644 (file)
@@ -543,7 +543,7 @@ __libc_res_nquerydomain(res_state statp,
 {
        char nbuf[MAXDNAME];
        const char *longname = nbuf;
-       int n, d;
+       size_t n, d;
 
 #ifdef DEBUG
        if (statp->options & RES_DEBUG)