diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-06-03 10:22:52 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-06-03 10:22:52 +0000 |
commit | ee78670e26f24777550cb2cc44c79f427477a59c (patch) | |
tree | 26382b0e4ca1db070d4db93d1787c4d3acdaa17a | |
parent | 10bb97c7933700d5ca3b596c67d59ee944774d88 (diff) | |
download | glibc-ee78670e26f24777550cb2cc44c79f427477a59c.tar glibc-ee78670e26f24777550cb2cc44c79f427477a59c.tar.gz glibc-ee78670e26f24777550cb2cc44c79f427477a59c.tar.bz2 glibc-ee78670e26f24777550cb2cc44c79f427477a59c.zip |
* 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-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>.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | nscd/nscd_getserv_r.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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". diff --git a/nscd/nscd_getserv_r.c b/nscd/nscd_getserv_r.c index 3cd5a24298..b1ad7e2e43 100644 --- a/nscd/nscd_getserv_r.c +++ b/nscd/nscd_getserv_r.c @@ -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); } |