]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use size_t for strlen results
authorAndreas Schwab <schwab@redhat.com>
Wed, 20 Jul 2011 15:40:37 +0000 (11:40 -0400)
committerAndreas Schwab <schwab@redhat.com>
Thu, 21 Jul 2011 10:22:54 +0000 (12:22 +0200)
(cherry picked from commit 28b59fca7ae3cfc2d57e0007aaa3793d4b775e97)

ChangeLog
resolv/res_query.c

index 4beefb4e3d0685fc8a72599e983b995636889a37..ea8e0f274c2da70d3bcd71af9352a0604d74e709 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-19  Andreas Schwab  <schwab@redhat.com>
 
        * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
index 26daf0d87b3d2f8cf19d825a86b8ac8d89e7550a..2f7cfaa4b7feffb72749ea7e3ffcdc0f9986e300 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)