Changeset 2209 in MondoRescue for branches/2.2.9/mondo/src/mondorestore
- Timestamp:
- May 15, 2009, 4:56:31 AM (17 years ago)
- Location:
- branches/2.2.9/mondo/src/mondorestore
- Files:
-
- 3 edited
-
Makefile.am (modified) (1 diff)
-
mondo-rstr-newt.c (modified) (3 diffs)
-
mondorestore.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/mondorestore/Makefile.am
r1930 r2209 15 15 mondorestore_SOURCES = mondo-prep.c mondorestore.c mondo-rstr-newt.c \ 16 16 mondo-rstr-compare.c mondo-rstr-tools.c 17 mondorestore_LDADD = ${top_builddir}/src/common/libmondo.a @MONDORESTORE_STATIC@17 mondorestore_LDADD = ${top_builddir}/src/common/libmondo.a ${top_builddir}/src/lib/libmr.a @MONDORESTORE_STATIC@ -
branches/2.2.9/mondo/src/mondorestore/mondo-rstr-newt.c
r2140 r2209 1943 1943 /** buffers **********************************************************/ 1944 1944 char tmp[MAX_STR_LEN]; 1945 char flaws_str_A[MAX_STR_LEN];1946 char flaws_str_B[MAX_STR_LEN];1947 char flaws_str_C[MAX_STR_LEN];1945 char *flaws_str_A = NULL; 1946 char *flaws_str_B = NULL; 1947 char *flaws_str_C = NULL; 1948 1948 1949 1949 assert(mountlist != NULL); 1950 1950 assert(raidlist != NULL); 1951 1951 1952 strcpy(flaws_str_A, "xxxxxxxxx");1953 strcpy(flaws_str_B, "xxxxxxxxx");1954 strcpy(flaws_str_C, "xxxxxxxxx");1952 asprintf(&flaws_str_A, "%s", "xxxxxxxxx"); 1953 asprintf(&flaws_str_B, "%s", "xxxxxxxxx"); 1954 asprintf(&flaws_str_C, "%s", "xxxxxxxxx"); 1955 1955 if (mountlist->entries > ARBITRARY_MAXIMUM) { 1956 1956 log_to_screen("Arbitrary limits suck, man!"); … … 2043 2043 } 2044 2044 } 2045 paranoid_free(flaws_str_A); 2046 paranoid_free(flaws_str_B); 2047 paranoid_free(flaws_str_C); 2045 2048 newtFormDestroy(myForm); 2046 2049 newtPopWindow(); … … 2068 2071 { 2069 2072 int res = 0; 2070 // char tmp[MAX_STR_LEN];2071 2073 2072 2074 iamhere("entering eml"); -
branches/2.2.9/mondo/src/mondorestore/mondorestore.c
r2202 r2209 23 23 24 24 extern void twenty_seconds_til_yikes(void); 25 26 /* We don't have a cleanup function yet */ 27 void (*mr_cleanup)(void) = NULL; 25 28 26 29 /* Reference to global bkpinfo */ … … 776 779 bool boot_loader_installed = FALSE; 777 780 /** malloc **/ 778 char tmp[MAX_STR_LEN], tmpA[MAX_STR_LEN], tmpB[MAX_STR_LEN], 779 tmpC[MAX_STR_LEN]; 781 char tmp[MAX_STR_LEN]; 782 char *tmpA; 783 char *tmpB; 784 char *tmpC; 780 785 781 786 assert(bkpinfo != NULL); 782 787 assert(mountlist != NULL); 783 788 assert(raidlist != NULL); 789 790 asprintf(&tmpA, "%s", "xxxxxxxxx"); 791 asprintf(&tmpB, "%s", "xxxxxxxxx"); 792 asprintf(&tmpC, "%s", "xxxxxxxxx"); 784 793 785 794 log_msg(2, "nuke_mode --- starting");
Note:
See TracChangeset
for help on using the changeset viewer.
