Ticket #1950: glob.c.diff

File glob.c.diff, 512 bytes (added by pavlinux, 14 years ago)

FOR LATEST MASTER

  • lib/search/glob.c

    diff --git a/lib/search/glob.c b/lib/search/glob.c
    index d40d42a..0ac9fa6 100644
    a b mc_search__translate_replace_glob_to_regex (gchar *str) 
    121121    int cnt = '0'; 
    122122 
    123123    while (*str) { 
    124         char c = *str++; 
     124        char c = (char)*str++; 
    125125        switch (c) { 
    126126        case '*': 
    127127        case '?': 
    128128            g_string_append_c (buff, '\\'); 
    129             c = ++cnt; 
     129            c = (char)++cnt; 
    130130            break; 
    131131        /* breaks copying: mc uses "\0" internally, it must not be changed */ 
    132132        /*case '\\':*/