Changeset 3237 in MondoRescue for branches/3.2/mondo/src/common/libmondo-devices.c
- Timestamp:
- Jan 3, 2014, 5:44:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-devices.c
r3212 r3237 3264 3264 char *which_partition_format(const char *drive) 3265 3265 { 3266 static char output[4];3266 char *output = NULL; 3267 3267 char *tmp = NULL; 3268 3268 char *command; … … 3277 3277 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command)); 3278 3278 if (strstr(tmp, "GPT") == NULL) { 3279 strcpy(output, "MBR");3279 mr_asprintf(output, "%s", "MBR"); 3280 3280 } else { 3281 strcpy(output, "GPT");3281 mr_asprintf(output, "%s", "GPT"); 3282 3282 } 3283 3283 mr_free(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.