summaryrefslogtreecommitdiff
path: root/libc/stdlib/mkstemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/mkstemp.c')
-rw-r--r--libc/stdlib/mkstemp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/mkstemp.c b/libc/stdlib/mkstemp.c
index 551f03199..241f8af8a 100644
--- a/libc/stdlib/mkstemp.c
+++ b/libc/stdlib/mkstemp.c
@@ -13,13 +13,13 @@ char *template;
int l = strlen(template);
if (l < 6) {
- errno = EINVAL;
+ __set_errno(EINVAL);
return -1;
}
for (i = l - 6; i < l; i++)
if (template[i] != 'X') {
- errno = EINVAL;
+ __set_errno(EINVAL);
return -1;
}