summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/mktemp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c
index 59a0a5b5c04..3f35659021f 100644
--- a/lib/libc/stdio/mktemp.c
+++ b/lib/libc/stdio/mktemp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mktemp.c,v 1.26 2009/03/01 13:35:46 millert Exp $ */
+/* $OpenBSD: mktemp.c,v 1.27 2009/03/20 16:05:11 millert Exp $ */
/*
* Copyright (c) 1996-1998, 2008 Theo de Raadt
* Copyright (c) 1997, 2008-2009 Todd C. Miller
@@ -46,13 +46,13 @@ mktemp_internal(char *path, int slen, int mode)
if (*path == '\0') {
errno = EINVAL;
- return(0);
+ return(-1);
}
len = strlen(path);
if (len == 0 || slen >= len) {
errno = EINVAL;
- return(0);
+ return(-1);
}
ep = path + len - slen;