Changeset 2211 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-string.c
- Timestamp:
- Jun 3, 2009, 7:10:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-string.c
r2209 r2211 8 8 9 9 #include "my-stuff.h" 10 #include "mr_mem.h" 10 11 #include "mondostructures.h" 11 12 #include "libmondo-string.h" … … 630 631 if (strlen(flaws_str) > 0) { 631 632 paranoid_free(flaws_str_A); 632 asprintf(&flaws_str_A, "%s", flaws_str + 1);633 mr_asprintf(&flaws_str_A, "%s", flaws_str + 1); 633 634 } 634 635 if (strlen(flaws_str_A) >= 74) { 635 636 for (i = 74; flaws_str_A[i] != ' '; i--); 636 637 paranoid_free(flaws_str_B); 637 asprintf(&flaws_str_B, "%s", flaws_str_A + i + 1);638 mr_asprintf(&flaws_str_B, "%s", flaws_str_A + i + 1); 638 639 flaws_str_A[i] = '\0'; 639 640 } … … 641 642 for (i = 74; flaws_str_B[i] != ' '; i--); 642 643 paranoid_free(flaws_str_C); 643 asprintf(&flaws_str_C, "%s", flaws_str_B + i + 1);644 mr_asprintf(&flaws_str_C, "%s", flaws_str_B + i + 1); 644 645 flaws_str_B[i] = '\0'; 645 646 }
Note:
See TracChangeset
for help on using the changeset viewer.