Ignore:
Timestamp:
Feb 15, 2007, 12:27:39 AM (17 years ago)
Author:
Bruno Cornec
Message:

strip_spaces => mr_strip_spaces in mr_str.c and corrected at the same time :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c

    r1125 r1168  
    55#include "mr_mem.h"
    66#include "mr_msg.h"
     7#include "mr_str.h"
    78
    89extern char *g_mondo_cfg_file;  // where m*ndo-restore.cfg (the config file) is stored
     
    215216        strcpy(size_str, size_here);
    216217//      log_it ("Originals = %s,%s,%s,%s", device_str, mountpoint_str, format_str, size_str);
    217         strip_spaces(device_str);
    218         strip_spaces(mountpoint_str);
    219         strip_spaces(format_str);
    220         strip_spaces(size_str);
     218        mr_strip_spaces(device_str);
     219        mr_strip_spaces(mountpoint_str);
     220        mr_strip_spaces(format_str);
     221        mr_strip_spaces(size_str);
    221222//      log_it ("Modified = %s,%s,%s,%s", device_str, mountpoint_str, format_str, size_str);
    222223        if (b_res == bOK) {
     
    278279        ("Add variable", "Enter the name of the variable to add", sz_out,
    279280         MAX_STR_LEN)) {
    280         strip_spaces(sz_out);
     281        mr_strip_spaces(sz_out);
    281282        items = raidrec->additional_vars.entries;
    282283        for (i = 0;
     
    498499            return;
    499500        }
    500         strip_spaces(tmp);
     501        mr_strip_spaces(tmp);
    501502        if (tmp[0] == '[' && tmp[strlen(tmp) - 1] == ']') {
    502503            strcpy(sz, tmp);
     
    552553            return;
    553554        }
    554         strip_spaces(tmp);
     555        mr_strip_spaces(tmp);
    555556        if (tmp[0] == '[' && tmp[strlen(tmp) - 1] == ']') {
    556557            strcpy(sz, tmp);
     
    12311232        b_res = newtRunForm(myForm);
    12321233        strcpy(device_str, device_here);
    1233         strip_spaces(device_str);
     1234        mr_strip_spaces(device_str);
    12341235        strcpy(mountpoint_str, mountpoint_here);
    1235         strip_spaces(mountpoint_str);
     1236        mr_strip_spaces(mountpoint_str);
    12361237        strcpy(format_str, format_here);
    1237         strip_spaces(format_str);
     1238        mr_strip_spaces(format_str);
    12381239        if (b_res == bOK && strstr(device_str, RAID_DEVICE_STUB)
    12391240            && strstr(device_used_to_be, RAID_DEVICE_STUB)
     
    12511252            && strcmp(mountlist->el[currline].mountpoint, "image")) {
    12521253            strcpy(size_str, size_here);
    1253             strip_spaces(size_str);
     1254            mr_strip_spaces(size_str);
    12541255        } else {
    12551256            sprintf(size_str, "%ld",
     
    18981899            raidrec->additional_vars.el[lino].label, sz_out);
    18991900    if (popup_and_get_string(header, comment, sz_out, MAX_STR_LEN)) {
    1900         strip_spaces(sz_out);
     1901        mr_strip_spaces(sz_out);
    19011902        strcpy(raidrec->additional_vars.el[lino].value, sz_out);
    19021903    }
     
    23062307                 "At what path on this device can the ISO files be found?",
    23072308                 isodir_path, MAX_STR_LEN / 4)) {
    2308                 strip_spaces(isodir_device);
    2309                 strip_spaces(isodir_format);
    2310                 strip_spaces(isodir_path);
     2309                mr_strip_spaces(isodir_device);
     2310                mr_strip_spaces(isodir_format);
     2311                mr_strip_spaces(isodir_path);
    23112312                log_it("%d - BBB - isodir_path = %s", isodir_path);
    23122313                return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.