diff options
Diffstat (limited to 'stdio-common/temptest.c')
-rw-r--r-- | stdio-common/temptest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdio-common/temptest.c b/stdio-common/temptest.c index 3747198..09786b2 100644 --- a/stdio-common/temptest.c +++ b/stdio-common/temptest.c @@ -7,12 +7,13 @@ char *files[500]; int main () { + char buf[FILENAME_MAX]; char *fn; FILE *fp; int i; for (i = 0; i < 500; i++) { - fn = __stdio_gen_tempname((CONST char *) NULL, + fn = __stdio_gen_tempname(buf, sizeof (buf), (CONST char *) NULL, "file", 0, (size_t *) NULL, (FILE **) NULL); if (fn == NULL) { printf ("__stdio_gen_tempname failed\n"); |