Changeset 1434 in MondoRescue for branches/stable/mondo/src/mondoarchive
- Timestamp:
- May 10, 2007, 1:38:43 AM (17 years ago)
- Location:
- branches/stable/mondo/src/mondoarchive
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondoarchive/mondo-cli.c
r1378 r1434 146 146 { 147 147 char *tmp = NULL; 148 char *p = NULL;149 148 char *q = NULL; 150 149 … … 153 152 154 153 bkpinfo->media_size = 0L; /* dummy value */ 155 for ( p = value; strchr(p, ','); p = strchr(p, ',') + 1) { 156 mr_asprintf(&tmp, p); 157 q = strchr(tmp, ','); 158 if (q != NULL) { 159 *q = '\0'; 160 } 161 bkpinfo->media_size = friendly_sizestr_to_sizelong(tmp); 162 mr_free(tmp); 163 164 mr_msg(3, "media_size = %ld", bkpinfo->media_size); 165 } 154 mr_asprintf(&tmp, value); 155 q = strchr(tmp, ','); 156 if (q != NULL) { 157 *q = '\0'; 158 } 159 bkpinfo->media_size = friendly_sizestr_to_sizelong(tmp); 160 mr_free(tmp); 161 162 mr_msg(3, "media_size = %ld", bkpinfo->media_size); 166 163 if (bkpinfo->media_size <= 0L) { 167 164 mr_msg(1, "You gave media an invalid size\n"); -
branches/stable/mondo/src/mondoarchive/mondoarchive.c
r1422 r1434 136 136 137 137 char *p = NULL; 138 char *s = NULL; 139 140 s = mr_conf_sread("mondo_iso_creation_cmd"); 141 fprintf(stderr,"s: %s\n",s); 142 mr_asprintf(&p, s); 138 139 mr_asprintf(&p, mr_conf_sread("mondo_iso_creation_cmd")); 143 140 mr_cnf->iso_creation_cmd = p; 144 141 p = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.