summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authorJames Raynard <jraynard@FreeBSD.org>1996-06-22 10:34:15 +0000
committerJames Raynard <jraynard@FreeBSD.org>1996-06-22 10:34:15 +0000
commitce51cf0392a0b2cc80e5ddcdb01394a303093443 (patch)
treedabe76e239303cbaa8026d6b9fa85fe1b5845601 /lib/libc/stdio/vfprintf.c
parent55c148f316e1e2bbc7ac656d7f89144dd9dc34c0 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r--lib/libc/stdio/vfprintf.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index 0f241deebe10..5c3b9861e0c4 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -35,7 +35,11 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* LIBC_SCCS and not lint */
/*
@@ -67,6 +71,11 @@ static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93";
/* Define FLOATING_POINT to get floating point. */
#define FLOATING_POINT
+static int __sprint __P((FILE *, struct __suio *));
+static int __sbprintf __P((FILE *, const char *, va_list));
+static char * __ultoa __P((u_long, char *, int, int, char *));
+static char * __uqtoa __P((u_quad_t, char *, int, int, char *));
+
/*
* Flush out all the vectors defined by the given uio,
* then reset it so that it can be reused.
@@ -620,7 +629,7 @@ fp_begin: if (prec == -1)
* NUL in the first `prec' characters, and
* strlen() will go further.
*/
- char *p = memchr(cp, 0, prec);
+ char *p = memchr(cp, 0, (size_t)prec);
if (p != NULL) {
size = p - cp;