summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/gen/ctime.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/port/gen/ctime.c')
-rw-r--r--usr/src/lib/libc/port/gen/ctime.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/src/lib/libc/port/gen/ctime.c b/usr/src/lib/libc/port/gen/ctime.c
index c2a58b25b3..4f3b228598 100644
--- a/usr/src/lib/libc/port/gen/ctime.c
+++ b/usr/src/lib/libc/port/gen/ctime.c
@@ -25,9 +25,7 @@
*/
/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
+/* All Rights Reserved */
/*
* This routine converts time as follows.
@@ -117,7 +115,7 @@ __posix_asctime_r(const struct tm *t, char *cbuf)
int year = t->tm_year + 1900;
cp = cbuf;
- for (ncp = Date; *cp++ = *ncp++; /* */)
+ for (ncp = Date; (*cp++ = *ncp++) != '\0'; /* */)
;
ncp = Day + (3 * t->tm_wday);
cp = cbuf;