Ignore:
Timestamp:
Sep 29, 2013, 7:27:11 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Fix all compilation/link error due to the previous giant merge with 3.1. 3.2 is ready to test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-devices.c

    r3191 r3194  
    884884    if (!tmp[0]) {
    885885        mr_free(tmp);
    886         mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output("cdrecord -scanbus 2> /dev/null | grep \)\ \' | grep -n '' | grep -E '[D|C][V|D]' | cut -d':' -f1"));
     886        mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output("cdrecord -scanbus 2> /dev/null | grep -E '\)\ \'' | grep -n '' | grep -E '[D|C][V|D]' | cut -d':' -f1"));
    887887    }
    888888    if (tmp[0]) {
     
    24002400
    24012401        /* Initiate bkpinfo netfs_mount path from running environment if not already done */
    2402         if (!bkpinfo->netfs_mount == NULL) {
    2403             mr_asprintf(bkpinfo->netfs_mount, call_program_and_get_last_line_of_output("mount | grep \":\" | cut -d' ' -f1 | head -n1"));
     2402        if (bkpinfo->netfs_mount == NULL) {
     2403            mr_asprintf(bkpinfo->netfs_mount, "%s", call_program_and_get_last_line_of_output("mount | grep \":\" | cut -d' ' -f1 | head -n1"));
    24042404        }
    24052405#ifdef __FreeBSD__
     
    24172417            }
    24182418            mr_free(bkpinfo->netfs_mount);
    2419             mr_asprintf(bkpinfo->netfs_mount, "%s", p;
     2419            mr_asprintf(bkpinfo->netfs_mount, "%s", p);
    24202420            if (!bkpinfo->restore_data) {
    24212421                if ((compression_type = which_compression_type()) == NULL) {
     
    24482448
    24492449            if (!bkpinfo->restore_data) {
    2450                 mr_sprintf(sz_size, "%d", DEFAULT_DVD_DISK_SIZE);   // 4.7 salesman's GB = 4.482 real GB = 4482 MB
     2450                mr_asprintf(sz_size, "%d", DEFAULT_DVD_DISK_SIZE);  // 4.7 salesman's GB = 4.482 real GB = 4482 MB
    24512451                mr_asprintf(comment, "How much data (in Megabytes) will each media store?");
    24522452                strcpy(tmp1, sz_size);
     
    24962496            strcpy(tmp1, "");
    24972497        }
    2498         if (!popup_and_get_string("Network user", "Which user should I use if any ?",tmp1)) {
     2498        if (!popup_and_get_string("Network user", "Which user should I use if any ?",tmp1, MAX_STR_LEN)) {
    24992499            log_to_screen("User has chosen not to backup the PC");
    25002500            finish(1);
     
    25562556            finish(1);
    25572557        }
    2558         strcpy(bkpinfo->netfs_remote_dir, tmp1);
     2558        mr_asprintf(bkpinfo->netfs_remote_dir, "%s", tmp1);
    25592559
    25602560        // check whether writable - we better remove surrounding spaces for this
    2561         strip_spaces(bkpinfo->netfs_remote_dir);
     2561        mr_strip_spaces(bkpinfo->netfs_remote_dir);
    25622562
    25632563        if (!popup_and_get_string
     
    28202820
    28212821    /* Handle devices passed in bkpinfo and print result */
    2822     /*  the mr_make_devlist_from_pathlist function appends
     2822    /*  the mr_make_devlist_from_pathlist function appends */
    28232823    /*  to the *_paths variables so copy before */
    28242824    mr_make_devlist_from_pathlist(bkpinfo->exclude_paths, 'E');
Note: See TracChangeset for help on using the changeset viewer.