diff options
Diffstat (limited to 'libbb/mode_string.c')
-rw-r--r-- | libbb/mode_string.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libbb/mode_string.c b/libbb/mode_string.c index 9a286f3ff..2b829016f 100644 --- a/libbb/mode_string.c +++ b/libbb/mode_string.c | |||
@@ -43,9 +43,8 @@ static const char type_chars[16] ALIGN1 = "?pc?d?b?-?l?s???"; | |||
43 | /***************************************** 0123456789abcdef */ | 43 | /***************************************** 0123456789abcdef */ |
44 | static const char mode_chars[7] ALIGN1 = "rwxSTst"; | 44 | static const char mode_chars[7] ALIGN1 = "rwxSTst"; |
45 | 45 | ||
46 | const char* FAST_FUNC bb_mode_string(mode_t mode) | 46 | char* FAST_FUNC bb_mode_string(char buf[12], mode_t mode) |
47 | { | 47 | { |
48 | static char buf[12]; | ||
49 | char *p = buf; | 48 | char *p = buf; |
50 | 49 | ||
51 | int i, j, k; | 50 | int i, j, k; |
@@ -83,9 +82,8 @@ static const char type_chars[16] ALIGN1 = "?pc?d?b?-?l?s???"; | |||
83 | /********************************** 0123456789abcdef */ | 82 | /********************************** 0123456789abcdef */ |
84 | static const char mode_chars[7] ALIGN1 = "rwxSTst"; | 83 | static const char mode_chars[7] ALIGN1 = "rwxSTst"; |
85 | 84 | ||
86 | const char* FAST_FUNC bb_mode_string(mode_t mode) | 85 | char* FAST_FUNC bb_mode_string(char buf[12], mode_t mode) |
87 | { | 86 | { |
88 | static char buf[12]; | ||
89 | char *p = buf; | 87 | char *p = buf; |
90 | 88 | ||
91 | int i, j, k, m; | 89 | int i, j, k, m; |