aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-28 21:57:12 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-28 21:57:12 +0000
commit450196c119e22268c9176cb7887cceb22bf8e9ff (patch)
treee4a76e61f40840b4dcf2015d55f9ecfa93a8ee23 /libbb/xfuncs.c
parentb7cffd4bedf14770a7096a11a6e46cc497ff37c6 (diff)
downloadbusybox-450196c119e22268c9176cb7887cceb22bf8e9ff.tar.gz
ps: work around libc bug: printf("%.*s\n", MAX_INT, buffer)
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index e1632a4b6..68ad3dec4 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -253,9 +253,9 @@ void smart_ulltoa5(unsigned long long ul, char buf[5])
buf[4] = '\0';
}
-// Convert unsigned integer to ascii, writing into supplied buffer. A
-// truncated result is always null terminated (unless buflen is 0), and
-// contains the first few digits of the result ala strncpy.
+// Convert unsigned integer to ascii, writing into supplied buffer.
+// A truncated result contains the first few digits of the result ala strncpy.
+// Returns a pointer past last generated digit, does _not_ store NUL.
void BUG_sizeof_unsigned_not_4(void);
char *utoa_to_buf(unsigned n, char *buf, unsigned buflen)
{