File nscd-getservbyport.patch of Package glibc.openSUSE_13.1_Update
2013-11-11 Andreas Schwab <schwab@suse.de> [BZ #16153] * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include terminating NUL in key length. Index: glibc-2.18/nscd/nscd_getserv_r.c =================================================================== --- glibc-2.18.orig/nscd/nscd_getserv_r.c +++ glibc-2.18/nscd/nscd_getserv_r.c @@ -54,7 +54,7 @@ __nscd_getservbyport_r (int port, const portstr[sizeof (portstr) - 1] = '\0'; char *cp = _itoa_word (port, portstr + sizeof (portstr) - 1, 10, 0); - return nscd_getserv_r (cp, portstr + sizeof (portstr) - cp, proto, + return nscd_getserv_r (cp, portstr + sizeof (portstr) - 1 - cp, proto, GETSERVBYPORT, result_buf, buf, buflen, result); }