1998-12-15  H.J. Lu  <hjl@gnu.org>

	* sysdeps/posix/tempname.c (__path_search): Fix the maximum
	string length.
This commit is contained in:
Ulrich Drepper 1998-12-15 16:56:25 +00:00
parent e9dcb08080
commit a3fc1f7195
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1998-12-15 H.J. Lu <hjl@gnu.org>
* sysdeps/posix/tempname.c (__path_search): Fix the maximum
string length.
1998-12-15 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/msgctl.c: Use INLINE_SYSCALL.

View File

@ -95,7 +95,7 @@ __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
return -1;
}
sprintf (tmpl, "%*s/%*sXXXXXX", dlen, dir, plen, pfx);
sprintf (tmpl, "%.*s/%.*sXXXXXX", dlen, dir, plen, pfx);
return 0;
}