1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2001-01-20  Ulrich Drepper  <drepper@redhat.com>

	* io/ftw.c (ftw_dir): Add slash after directory name if there
	wasn't any.  Reported by loris <loris@iol.it>.
	* io/Makefile (tests): Add bug-ftw2.
	* io/bug-ftw2.c: New file.
This commit is contained in:
Ulrich Drepper
2001-01-20 16:30:18 +00:00
parent df152cc80e
commit 21a568e279
5 changed files with 98 additions and 3 deletions

View File

@ -31,7 +31,7 @@ __jrand48_r (xsubi, buffer, result)
/* Store the result. */
if (sizeof (unsigned short int) == 2)
*result = (xsubi[2] << 16) | xsubi[1];
*result = ((xsubi[2] << 16) | xsubi[1]) & 0xffffffffl;
else
*result = xsubi[2] & 0xffffffffl;