diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1998-04-15 03:11:37 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1998-04-15 03:11:37 +0000 |
| commit | cdd7c9a25dda0a11a42b0818115ee59da425a677 (patch) | |
| tree | 2c787a592a358f1854f336e9e879f97ce5511395 | |
| parent | 014865a885ca355347d1c64593fee036d90c1585 (diff) | |
Notes
| -rw-r--r-- | lib/libc/stdio/mktemp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index 15b3b09bf927..16b6fbebf987 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id: mktemp.c,v 1.4.2.2 1998/03/04 07:26:37 jkh Exp $"; + "$Id$"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -164,11 +164,13 @@ _gettemp(path, doopen, domkdir) for (trv = start;;) { if (!*trv) return(0); - if (*trv == 'z') + if (*trv == 'Z') *trv++ = 'a'; else { if (isdigit(*trv)) *trv = 'a'; + else if (*trv == 'z') /* inc from z to A */ + *trv = 'A'; else ++*trv; break; |
