From: Jakub Jelinek Date: Tue, 3 Jun 2008 10:22:52 +0000 (+0000) Subject: * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp X-Git-Tag: cvs/fedora-glibc-20080612T1619~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee78670e26f24777550cb2cc44c79f427477a59c;p=thirdparty%2Fglibc.git * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp instead of portstr to nscd_getserv_r. Patch by Roman Kagan . 2008-06-03 Jakub Jelinek * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp instead of portstr to nscd_getserv_r. Patch by Roman Kagan . --- diff --git a/ChangeLog b/ChangeLog index 3f413607159..3f6213f6df7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-06-03 Jakub Jelinek + + * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp + instead of portstr to nscd_getserv_r. Patch by + Roman Kagan . + 2008-05-26 Jim Meyering Remove more useless "if" tests before "free". diff --git a/nscd/nscd_getserv_r.c b/nscd/nscd_getserv_r.c index 3cd5a242989..b1ad7e2e430 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); }