Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/libbb/printable_string.c

    r2725 r3621  
    1212const char* FAST_FUNC printable_string(uni_stat_t *stats, const char *str)
    1313{
    14     static char *saved[4];
    15     static unsigned cur_saved; /* = 0 */
    16 
    1714    char *dst;
    1815    const char *s;
     
    5754    }
    5855#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);
    6557}
Note: See TracChangeset for help on using the changeset viewer.