summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/snprintf.c4
-rw-r--r--lib/libc/stdio/vsnprintf.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c
index 086f8b2..8a7584c 100644
--- a/lib/libc/stdio/snprintf.c
+++ b/lib/libc/stdio/snprintf.c
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)snprintf.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id: snprintf.c,v 1.5 1997/02/22 15:02:29 peter Exp $";
+ "$Id: snprintf.c,v 1.6 1997/12/24 12:31:31 ache Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
@@ -65,8 +65,6 @@ snprintf(str, n, fmt, va_alist)
va_list ap;
FILE f;
- if (n == 0)
- return (0);
if ((int)n < 1)
return (EOF);
n--;
diff --git a/lib/libc/stdio/vsnprintf.c b/lib/libc/stdio/vsnprintf.c
index ec13305..8d824fe 100644
--- a/lib/libc/stdio/vsnprintf.c
+++ b/lib/libc/stdio/vsnprintf.c
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)vsnprintf.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id: vsnprintf.c,v 1.5 1997/02/22 15:02:45 peter Exp $";
+ "$Id: vsnprintf.c,v 1.6 1997/12/24 12:31:32 ache Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
@@ -54,8 +54,6 @@ vsnprintf(str, n, fmt, ap)
int ret;
FILE f;
- if (n == 0)
- return (0);
if ((int)n < 1)
return (EOF);
n--;
OpenPOWER on IntegriCloud