提交 38258472 编写于 作者: R Rich Felker

another return value fix for mktemp...

上级 2697b4e7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册