#if 0
static char elsieid[] = "@(#)localtime.c 7.59";
#else
-static char rcsid[] = "$OpenBSD: localtime.c,v 1.8 1997/01/14 03:16:47 millert Exp $";
+static char rcsid[] = "$OpenBSD: localtime.c,v 1.9 1997/01/21 04:52:44 millert Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
if (!doaccess && issetugid() == 0) {
if ((p = TZDIR) == NULL)
return -1;
- if ((strlen(p) + strlen(name) + 2) >= sizeof fullname)
+ if ((strlen(p) + strlen(name) + 1) >= sizeof fullname)
return -1;
(void) strcpy(fullname, p);
(void) strcat(fullname, "/");
#if 0
static char elsieid[] = "@(#)zdump.c 7.24";
#else
-static char rcsid[] = "$OpenBSD: zdump.c,v 1.4 1997/01/14 03:16:56 millert Exp $";
+static char rcsid[] = "$OpenBSD: zdump.c,v 1.5 1997/01/21 04:52:45 millert Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
show(argv[i], t, TRUE);
tm = *localtime(&t);
(void) strncpy(buf, abbr(&tm), (sizeof buf) - 1);
- buf[(sizeof buf) - 1] = '\0';
for ( ; ; ) {
if (cutoff != NULL && t >= cuttime)
break;
newtm = *localtime(&newt);
(void) strncpy(buf, abbr(&newtm),
(sizeof buf) - 1);
- buf[(sizeof buf) - 1] = '\0';
}
t = newt;
tm = newtm;