diff options
author | Andreas Schwab <schwab@redhat.com> | 2011-07-20 11:40:37 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-07-20 11:40:37 -0400 |
commit | 28b59fca7ae3cfc2d57e0007aaa3793d4b775e97 (patch) | |
tree | be1fce76d18dac6a9b1181487e2387dd67ed8da2 | |
parent | 5551a7b6aa00e6bc2bf6a0daa98a01e7fd725ba9 (diff) | |
download | glibc-28b59fca7ae3cfc2d57e0007aaa3793d4b775e97.tar glibc-28b59fca7ae3cfc2d57e0007aaa3793d4b775e97.tar.gz glibc-28b59fca7ae3cfc2d57e0007aaa3793d4b775e97.tar.bz2 glibc-28b59fca7ae3cfc2d57e0007aaa3793d4b775e97.zip |
Use size_t for strlen results
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | resolv/res_query.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 diff --git a/resolv/res_query.c b/resolv/res_query.c index 26daf0d87b..2f7cfaa4b7 100644 --- a/resolv/res_query.c +++ b/resolv/res_query.c @@ -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) |