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


Ignore:
Timestamp:
Oct 7, 2005, 7:03:07 PM (19 years ago)
Author:
bcornec
Message:

some bugs corrected (size_t, & for getline, ...) + indent

File:
1 edited

Legend:

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

    r45 r49  
    128128    assert(input != NULL);
    129129
    130     asprintf(tmp, "%s", input);
     130    asprintf(&tmp, "%s", input);
    131131    if (strlen(tmp) > 6) {
    132132        asprintf(&pos_w_commas, "%s", tmp);
     
    250250    assert(width > 2);
    251251
    252     asprintf(output, "%s", incoming);
     252    asprintf(&output, "%s", incoming);
    253253    for (i = (int) strlen(output); i < width; i++) {
    254254        output[i] = ' ';
Note: See TracChangeset for help on using the changeset viewer.