diff options
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/tmpnam.c | 2 | ||||
-rw-r--r-- | stdio-common/tmpnam_r.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/tmpnam.c b/stdio-common/tmpnam.c index a5621c2..701ec95 100644 --- a/stdio-common/tmpnam.c +++ b/stdio-common/tmpnam.c @@ -24,7 +24,7 @@ static char tmpnam_buffer[L_tmpnam]; This function is *not* thread safe! */ char * -tmpnam (char *s) +tmpnam (char s[L_tmpnam]) { /* By using two buffers we manage to be thread safe in the case where S != NULL. */ diff --git a/stdio-common/tmpnam_r.c b/stdio-common/tmpnam_r.c index 3fd2030..1af0aa8 100644 --- a/stdio-common/tmpnam_r.c +++ b/stdio-common/tmpnam_r.c @@ -20,7 +20,7 @@ /* Generate a unique filename in P_tmpdir. If S is NULL return NULL. This makes this function thread safe. */ char * -tmpnam_r (char *s) +tmpnam_r (char s[L_tmpnam]) { if (s == NULL) return NULL; |