Changeset 57 in MondoRescue for trunk/mondo/mondo/common/libmondo-string.c


Ignore:
Timestamp:
Oct 9, 2005, 1:48:42 AM (19 years ago)
Author:
bcornec
Message:

asprintf for libmondo-string.c (first step)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-string.c

    r49 r57  
    122122{
    123123    char *pos_w_commas;
    124     static char output[MAX_STR_LEN];
     124    char *output;
    125125    char *tmp;
    126126    int j;
     
    145145        asprintf(&pos_w_commas, "%s", tmp);
    146146    }
    147     strcpy(output, pos_w_commas);
     147    asprintf(&output, "%s", pos_w_commas);
    148148    paranoid_free(pos_w_commas);
    149149    paranoid_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.