diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-28 21:57:12 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-28 21:57:12 +0000 |
commit | 42c8aa81be2d5a7e4e8e533d8af63456909f5f68 (patch) | |
tree | e4a76e61f40840b4dcf2015d55f9ecfa93a8ee23 /libbb | |
parent | a854a75a5ba2ee6461ccdf776e402e4581e2cc1d (diff) | |
download | busybox-w32-42c8aa81be2d5a7e4e8e533d8af63456909f5f68.tar.gz busybox-w32-42c8aa81be2d5a7e4e8e533d8af63456909f5f68.tar.bz2 busybox-w32-42c8aa81be2d5a7e4e8e533d8af63456909f5f68.zip |
ps: work around libc bug: printf("%.*s\n", MAX_INT, buffer)
git-svn-id: svn://busybox.net/trunk/busybox@18266 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xfuncs.c | 6 |
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]) | |||
253 | buf[4] = '\0'; | 253 | buf[4] = '\0'; |
254 | } | 254 | } |
255 | 255 | ||
256 | // Convert unsigned integer to ascii, writing into supplied buffer. A | 256 | // Convert unsigned integer to ascii, writing into supplied buffer. |
257 | // truncated result is always null terminated (unless buflen is 0), and | 257 | // A truncated result contains the first few digits of the result ala strncpy. |
258 | // contains the first few digits of the result ala strncpy. | 258 | // Returns a pointer past last generated digit, does _not_ store NUL. |
259 | void BUG_sizeof_unsigned_not_4(void); | 259 | void BUG_sizeof_unsigned_not_4(void); |
260 | char *utoa_to_buf(unsigned n, char *buf, unsigned buflen) | 260 | char *utoa_to_buf(unsigned n, char *buf, unsigned buflen) |
261 | { | 261 | { |