about summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-15 16:56:25 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-15 16:56:25 +0000
commita3fc1f7195e6c919f6606f6aefd2167236f7cae3 (patch)
tree0132f63826193a0a5cb9a7dd00b8c2e8a0eebc11 /sysdeps/posix
parente9dcb080809726a5531d2b5932b7f47e61d4bc49 (diff)
downloadglibc-a3fc1f7195e6c919f6606f6aefd2167236f7cae3.tar.gz
glibc-a3fc1f7195e6c919f6606f6aefd2167236f7cae3.tar.xz
glibc-a3fc1f7195e6c919f6606f6aefd2167236f7cae3.zip
Update.
1998-12-15  H.J. Lu  <hjl@gnu.org>

	* sysdeps/posix/tempname.c (__path_search): Fix the maximum
	string length.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/tempname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c
index a89a73721f..7437a8a420 100644
--- a/sysdeps/posix/tempname.c
+++ b/sysdeps/posix/tempname.c
@@ -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;
 }