From a3fc1f7195e6c919f6606f6aefd2167236f7cae3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 15 Dec 1998 16:56:25 +0000 Subject: Update. 1998-12-15 H.J. Lu * sysdeps/posix/tempname.c (__path_search): Fix the maximum string length. --- sysdeps/posix/tempname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/posix/tempname.c') 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; } -- cgit 1.4.1