Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/libbb/printable_string.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/libbb/printable_string.c
r2725 r3621 12 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 14 char *dst; 18 15 const char *s; … … 57 54 } 58 55 #endif 59 60 free(saved[cur_saved]); 61 saved[cur_saved] = dst; 62 cur_saved = (cur_saved + 1) & (ARRAY_SIZE(saved)-1); 63 64 return dst; 56 return auto_string(dst); 65 57 }
Note:
See TracChangeset
for help on using the changeset viewer.