projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2697b4e
)
another return value fix for mktemp...
author
Rich Felker
<dalias@aerifal.cx>
Sun, 12 Jun 2011 14:25:29 +0000
(10:25 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 12 Jun 2011 14:25:29 +0000
(10:25 -0400)
src/temp/mktemp.c
patch
|
blob
|
history
diff --git
a/src/temp/mktemp.c
b/src/temp/mktemp.c
index 1057651e315ccc8cefc55c454aa3e5c0682e588f..654a2794a92801d72ab57f2e6d8207ba5bbc040b 100644
(file)
--- a/
src/temp/mktemp.c
+++ b/
src/temp/mktemp.c
@@
-17,7
+17,8
@@
char *__mktemp(char *template)
if (l < 6 || strcmp(template+l-6, "XXXXXX")) {
errno = EINVAL;
- return 0;
+ *template = 0;
+ return template;
}
clock_gettime(CLOCK_REALTIME, &ts);
r = ts.tv_nsec + (uintptr_t)&ts / 16 + (uintptr_t)template;