1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>

* stdlib/strtol.c: Return correct pointer for strings
	like "0xyz" and base 0 or 16.

	* string/strxfrm.c: Handle case for LENGTH == 0 correct.

	* sunrpc/etc.rpc: Add some more known protocols.
Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>

	* stdlib/strtol.c: Return correct pointer for strings
	like "0xyz" and base 0 or 16.

	* string/strxfrm.c: Handle case for LENGTH == 0 correct.

	* sunrpc/etc.rpc: Add some more known protocols.
This commit is contained in:
Roland McGrath
1996-01-17 00:46:59 +00:00
parent 294897f4a6
commit da128169aa
4 changed files with 26 additions and 3 deletions

View File

@ -32,5 +32,8 @@ strxfrm (dest, src, n)
const char *src;
size_t n;
{
if (n == 0)
return strlen (src);
return __stpncpy (dest, src, n) - dest;
}