summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorRobert Drehmel <robert@FreeBSD.org>2002-05-27 19:27:43 +0000
committerRobert Drehmel <robert@FreeBSD.org>2002-05-27 19:27:43 +0000
commit6e818f06aaa2957b700121e794e50eac4120cd5a (patch)
treeea38cc57b889d8ba0ca82960fbc2f18ad18becda /lib/libc
parentca9578f3efdc386007f2c3ae914cb349cd4b3ca1 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/mktemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c
index 186d8b00fb87..ca99cf672b62 100644
--- a/lib/libc/stdio/mktemp.c
+++ b/lib/libc/stdio/mktemp.c
@@ -174,7 +174,7 @@ _gettemp(path, doopen, domkdir, slen)
if (*trv == '\0' || trv == suffp)
return (0);
pad = strchr(padchar, *trv);
- if (pad == NULL || *++pad != '\0')
+ if (pad == NULL || *++pad == '\0')
*trv++ = padchar[0];
else {
*trv++ = *pad;