Changeset 2314 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-string.c
- Timestamp:
- Aug 18, 2009, 2:29:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-string.c
r2313 r2314 421 421 422 422 /*@ buffers ********************************************************* */ 423 static char output[MAX_STR_LEN];423 char *output = NULL; 424 424 425 425 /*@ char ******************************************************** */ … … 433 433 p = ' '; 434 434 } 435 sprintf(output, "%d %s disk%c", noof_disks, label, p);435 mr_asprintf(&output, "%d %s disk%c", noof_disks, label, p); 436 436 while (strlen(output) < 14) { 437 strcat(output, " ");437 mr_strcat(output, " "); 438 438 } 439 439 return (output);
Note:
See TracChangeset
for help on using the changeset viewer.