diff options
author | Ron Yorston <rmy@pobox.com> | 2015-10-13 14:45:51 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-10-13 14:45:51 +0100 |
commit | 8e509f11bceeec419abc718300bef7422d1fee4c (patch) | |
tree | fdfbc752ad94102e3613a5d7254f14a93eaf7f56 /libbb/printable_string.c | |
parent | 420f5edfe7676fe6e7cddbbf15c04649d096e422 (diff) | |
parent | 4d0c1ea4784c9844f8468d97ca5c26d3c70f9921 (diff) | |
download | busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.tar.gz busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.tar.bz2 busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb/printable_string.c')
-rw-r--r-- | libbb/printable_string.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libbb/printable_string.c b/libbb/printable_string.c index 3e768d0b9..e638a178e 100644 --- a/libbb/printable_string.c +++ b/libbb/printable_string.c | |||
@@ -11,9 +11,6 @@ | |||
11 | 11 | ||
12 | const char* FAST_FUNC printable_string(uni_stat_t *stats, const char *str) | 12 | const char* FAST_FUNC printable_string(uni_stat_t *stats, const char *str) |
13 | { | 13 | { |
14 | static char *saved[4]; | ||
15 | static unsigned cur_saved; /* = 0 */ | ||
16 | |||
17 | char *dst; | 14 | char *dst; |
18 | const char *s; | 15 | const char *s; |
19 | 16 | ||
@@ -56,10 +53,5 @@ const char* FAST_FUNC printable_string(uni_stat_t *stats, const char *str) | |||
56 | } | 53 | } |
57 | } | 54 | } |
58 | #endif | 55 | #endif |
59 | 56 | return auto_string(dst); | |
60 | free(saved[cur_saved]); | ||
61 | saved[cur_saved] = dst; | ||
62 | cur_saved = (cur_saved + 1) & (ARRAY_SIZE(saved)-1); | ||
63 | |||
64 | return dst; | ||
65 | } | 57 | } |