+2002-12-05 [colin] 0.8.6claws65
+
+ * src/common/utils.c
+ Don't modify original search_string or it'll change
+ the next iterations in the for()
+
2002-12-05 [darko] 0.8.6claws64
- * src/utils.c
+ * src/common/utils.c
proper check for filtering commands, found by Colin
2002-12-05 [darko] 0.8.6claws63
- * src/utils.c
+ * src/common/utils.c
check proper string for NULL pointer, found by Colin
2002-12-05 [darko] 0.8.6claws62
- * src/utils.[ch]
+ * src/common/utils.[ch]
expand_search_string(): new function
converts Mutt-like patterns to Sylpheed's
filtering engine
/* if it's a full command don't process it so users
can still do something like from regexpcase "foo" */
for (i = 0; cmds[i].command; i++) {
+ gchar *tmp_search_string = search_string;
cmd_start = cmds[i].command;
/* allow logical NOT */
- if (*search_string == '~')
- search_string++;
- if (!strncmp(search_string, cmd_start, strlen(cmd_start)))
+ if (*tmp_search_string == '~')
+ tmp_search_string++;
+ if (!strncmp(tmp_search_string, cmd_start, strlen(cmd_start)))
break;
}
if (cmds[i].command)