* nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 Jun 2008 10:22:52 +0000 (10:22 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 3 Jun 2008 10:22:52 +0000 (10:22 +0000)
instead of portstr to nscd_getserv_r.  Patch by
Roman Kagan <rkagan@mail.ru>.
2008-06-03  Jakub Jelinek  <jakub@redhat.com>

* nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
instead of portstr to nscd_getserv_r.  Patch by
Roman Kagan <rkagan@mail.ru>.

ChangeLog
nscd/nscd_getserv_r.c

index 3f41360..3f6213f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-03  Jakub Jelinek  <jakub@redhat.com>
+
+       * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
+       instead of portstr to nscd_getserv_r.  Patch by
+       Roman Kagan <rkagan@mail.ru>.
+
 2008-05-26  Jim Meyering  <meyering@redhat.com>
 
        Remove more useless "if" tests before "free".
index 3cd5a24..b1ad7e2 100644 (file)
@@ -53,7 +53,7 @@ __nscd_getservbyport_r (int port, const char *proto,
   portstr[sizeof (portstr) - 1] = '\0';
   char *cp = _itoa_word (port, portstr + sizeof (portstr) - 1, 10, 0);
 
-  return nscd_getserv_r (portstr, portstr + sizeof (portstr) - cp, proto,
+  return nscd_getserv_r (cp, portstr + sizeof (portstr) - cp, proto,
                         GETSERVBYPORT, result_buf, buf, buflen, result);
 }