the next iterations in the for()
+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
2002-12-05 [darko] 0.8.6claws64
proper check for filtering commands, found by Colin
2002-12-05 [darko] 0.8.6claws63
proper check for filtering commands, found by Colin
2002-12-05 [darko] 0.8.6claws63
check proper string for NULL pointer, found by Colin
2002-12-05 [darko] 0.8.6claws62
check proper string for NULL pointer, found by Colin
2002-12-05 [darko] 0.8.6claws62
+ * src/common/utils.[ch]
expand_search_string(): new function
converts Mutt-like patterns to Sylpheed's
filtering engine
expand_search_string(): new function
converts Mutt-like patterns to Sylpheed's
filtering engine
MICRO_VERSION=6
INTERFACE_AGE=0
BINARY_AGE=0
MICRO_VERSION=6
INTERFACE_AGE=0
BINARY_AGE=0
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
/* 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++) {
/* 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 */
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)
break;
}
if (cmds[i].command)