This commit is contained in:
christos 2009-05-08 17:43:54 +00:00
parent 9132e9e090
commit 0d3ed1b0bc
3 changed files with 12 additions and 6 deletions

5
external/bsd/file/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/05/08 17:43:54 christos Exp $
SUBDIR= lib .WAIT bin
.include <bsd.subdir.mk>

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.1 2009/05/08 17:28:01 christos Exp $
# $NetBSD: Makefile.inc,v 1.2 2009/05/08 17:43:54 christos Exp $
DIST=${.CURDIR}/../dist
WARNS=4
USE_FORT?= yes # data-driven bugs?

View File

@ -1,4 +1,4 @@
/* $NetBSD: cdf.c,v 1.2 2009/05/08 17:28:01 christos Exp $ */
/* $NetBSD: cdf.c,v 1.3 2009/05/08 17:43:54 christos Exp $ */
/*-
* Copyright (c) 2008 Christos Zoulas
@ -37,7 +37,7 @@
#if 0
FILE_RCSID("@(#)$File: cdf.c,v 1.30 2009/05/06 14:29:47 christos Exp $")
#else
__RCSID("$NetBSD: cdf.c,v 1.2 2009/05/08 17:28:01 christos Exp $");
__RCSID("$NetBSD: cdf.c,v 1.3 2009/05/08 17:43:54 christos Exp $");
#endif
#endif
@ -949,18 +949,18 @@ cdf_print_elapsed_time(char *buf, size_t bufsiz, cdf_timestamp_t ts)
if (days) {
len += snprintf(buf + len, bufsiz - len, "%dd+", days);
if (len >= bufsiz)
if ((size_t)len >= bufsiz)
return len;
}
if (days || hours) {
len += snprintf(buf + len, bufsiz - len, "%.2d:", hours);
if (len >= bufsiz)
if ((size_t)len >= bufsiz)
return len;
}
len += snprintf(buf + len, bufsiz - len, "%.2d:", mins);
if (len >= bufsiz)
if ((size_t)len >= bufsiz)
return len;
len += snprintf(buf + len, bufsiz - len, "%.2d", secs);