Ignore:
Timestamp:
Nov 18, 2016, 5:31:43 PM (7 years ago)
Author:
Bruno Cornec
Message:

mr_strip_spaces now returns a dynamically allocated string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/newt-specific.c

    r3508 r3614  
    12341234        static char *possible_responses[] = { "none", "cdr", "cdrw", "dvd", "tape", "cdstream", "udev", "netfs", "iso", NULL };
    12351235        char *outstr = NULL;
     1236        char *instr = NULL;
    12361237        t_bkptype backup_type;
    12371238        int i;
     
    12561257                }
    12571258                printf(")\n--> ");
    1258                 mr_getline(outstr, stdin);
    1259                 mr_strip_spaces(outstr);
     1259                mr_getline(instr, stdin);
     1260                outstr = mr_strip_spaces(instr);
     1261                mr_free(instr);
    12601262                for (i = 0; possible_responses[i]; i++) {
    12611263                    if (!strcmp(possible_responses[i], outstr)) {
Note: See TracChangeset for help on using the changeset viewer.