diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-01-06 03:26:53 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-01-06 03:26:53 +0000 |
commit | 56ea65ca5f30778f05c8882b04e3a94c869bbca4 (patch) | |
tree | 85a5d24ca1a86b504779b034fd9e7dbe4dfffa38 /include | |
parent | 5fee2e1a79dc6fc05658821a86b0e7b5678a90dd (diff) | |
download | busybox-w32-56ea65ca5f30778f05c8882b04e3a94c869bbca4.tar.gz busybox-w32-56ea65ca5f30778f05c8882b04e3a94c869bbca4.tar.bz2 busybox-w32-56ea65ca5f30778f05c8882b04e3a94c869bbca4.zip |
ps: fix overflow in USER and VSZ columns
function old new delta
smart_ulltoa4 - 280 +280
smart_ulltoa5 283 408 +125
ulltoa6_and_space - 25 +25
scale 28 38 +10
bbunpack 358 366 +8
ps_main 259 261 +2
glob3 35 37 +2
fill_bounds 172 174 +2
process_stdin 456 446 -10
smart_ulltoa6 406 - -406
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 6/1 up/down: 454/-416) Total: 38 bytes
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 33e73b27b..a07606287 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -503,7 +503,9 @@ char *itoa(int n); | |||
503 | /* Returns a pointer past the formatted number, does NOT null-terminate */ | 503 | /* Returns a pointer past the formatted number, does NOT null-terminate */ |
504 | char *utoa_to_buf(unsigned n, char *buf, unsigned buflen); | 504 | char *utoa_to_buf(unsigned n, char *buf, unsigned buflen); |
505 | char *itoa_to_buf(int n, char *buf, unsigned buflen); | 505 | char *itoa_to_buf(int n, char *buf, unsigned buflen); |
506 | void smart_ulltoa5(unsigned long long ul, char buf[5]); | 506 | /* Intelligent formatters of bignums */ |
507 | void smart_ulltoa4(unsigned long long ul, char buf[5], const char *scale); | ||
508 | void smart_ulltoa5(unsigned long long ul, char buf[5], const char *scale); | ||
507 | //TODO: provide pointer to buf (avoid statics)? | 509 | //TODO: provide pointer to buf (avoid statics)? |
508 | const char *make_human_readable_str(unsigned long long size, | 510 | const char *make_human_readable_str(unsigned long long size, |
509 | unsigned long block_size, unsigned long display_unit); | 511 | unsigned long block_size, unsigned long display_unit); |