Ignore:
Timestamp:
Aug 18, 2009, 2:29:14 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3325@localhost: bruno | 2009-08-01 22:25:29 +0200
number_of_disks_as_string now alloctes memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-string.c

    r2313 r2314  
    421421
    422422    /*@ buffers ********************************************************* */
    423     static char output[MAX_STR_LEN];
     423    char *output = NULL;
    424424
    425425    /*@ char     ******************************************************** */
     
    433433        p = ' ';
    434434    }
    435     sprintf(output, "%d %s disk%c", noof_disks, label, p);
     435    mr_asprintf(&output, "%d %s disk%c", noof_disks, label, p);
    436436    while (strlen(output) < 14) {
    437         strcat(output, " ");
     437        mr_strcat(output, " ");
    438438    }
    439439    return (output);
Note: See TracChangeset for help on using the changeset viewer.