OSDN Git Service

minor code change.
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 10 Mar 2002 20:39:59 +0000 (20:39 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 10 Mar 2002 20:39:59 +0000 (20:39 +0000)
src/util.c

index c313dc4..ea6fce4 100644 (file)
@@ -391,7 +391,7 @@ FILE *my_fopen_temp(char *buf, int max)
        int fd;
 
        /* Prepare the buffer for mkstemp */
-       (void)strnfmt(buf, max, "%s", "/tmp/anXXXXXX");
+       strncpy(buf, "/tmp/anXXXXXX", max);
 
        /* Secure creation of a temporary file */
        fd = mkstemp(buf);