OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbbad2b
)
minor code change.
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 10 Mar 2002 20:39:59 +0000
(20:39 +0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 10 Mar 2002 20:39:59 +0000
(20:39 +0000)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
c313dc4
..
ea6fce4
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-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);