summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-08-04 11:03:20 +0000
committerkris <kris@FreeBSD.org>2000-08-04 11:03:20 +0000
commit81f8d1df4f934e94a9cfe116f9f518a858fa3bd4 (patch)
tree4cd63a1ec3dfc1df7e97b76ab581ff5ddd61f230 /lib/libc
parent910d78b1f5c37c3517a485c6b6c06f6344c17652 (diff)
downloadFreeBSD-src-81f8d1df4f934e94a9cfe116f9f518a858fa3bd4.zip
FreeBSD-src-81f8d1df4f934e94a9cfe116f9f518a858fa3bd4.tar.gz
Correct factor-of-10 error in INT_STRLEN_MAXIMUM() calculation.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdtime/private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdtime/private.h b/lib/libc/stdtime/private.h
index d8fa906..f1d7125 100644
--- a/lib/libc/stdtime/private.h
+++ b/lib/libc/stdtime/private.h
@@ -1,3 +1,5 @@
+/* $FreeBSD$ */
+
#ifndef PRIVATE_H
#define PRIVATE_H
@@ -166,7 +168,7 @@ static char privatehid[] = "@(#)private.h 7.43";
** add one more for a minus sign if the type is signed.
*/
#define INT_STRLEN_MAXIMUM(type) \
- ((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 100 + 1 + TYPE_SIGNED(type))
+ ((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + 1 + TYPE_SIGNED(type))
#endif /* !defined INT_STRLEN_MAXIMUM */
/*
OpenPOWER on IntegriCloud