Ticket #1950: glob.c.diff
File glob.c.diff, 512 bytes (added by pavlinux, 15 years ago) |
---|
-
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) 121 121 int cnt = '0'; 122 122 123 123 while (*str) { 124 char c = *str++;124 char c = (char)*str++; 125 125 switch (c) { 126 126 case '*': 127 127 case '?': 128 128 g_string_append_c (buff, '\\'); 129 c = ++cnt;129 c = (char)++cnt; 130 130 break; 131 131 /* breaks copying: mc uses "\0" internally, it must not be changed */ 132 132 /*case '\\':*/