Proper check for filtering commands, found by Colin.
authorDarko Koruga <darko@users.sourceforge.net>
Thu, 5 Dec 2002 11:06:29 +0000 (11:06 +0000)
committerDarko Koruga <darko@users.sourceforge.net>
Thu, 5 Dec 2002 11:06:29 +0000 (11:06 +0000)
ChangeLog.claws
configure.in
src/common/utils.c

index 6104354bdf502074839edf363328de5c36fefe20..a1d55a67abee1fa5793c85fd35442e7e91580544 100644 (file)
@@ -1,6 +1,11 @@
+2002-12-05 [darko]     0.8.6claws64
+
+       * src/utils.c
+               proper check for filtering commands, found by Colin
+
 2002-12-05 [darko]     0.8.6claws63
 
-       * src/utils.[ch]
+       * src/utils.c
                check proper string for NULL pointer, found by Colin
 
 2002-12-05 [darko]     0.8.6claws62
index fe1c17e588b9607535e6a0824f308f3f2706b4de..9cbc5296241aed468a5e1711409aa01b0ba393c3 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws63
+EXTRA_VERSION=claws64
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index cfd5309c6cf3187a8f54807a257a82ced2e3b9a9..39aab7b520201602cd8694e54f0018ce16e39872 100644 (file)
@@ -3092,9 +3092,9 @@ gchar *expand_search_string(const gchar *search_string)
        for (i = 0; cmds[i].command; i++) {
                cmd_start = cmds[i].command;
                /* allow logical NOT */
-               if (*cmd_start == '~')
-                       cmd_start++;
-               if (!strncmp(copy_str, cmd_start, strlen(cmd_start)))
+               if (*search_string == '~')
+                       search_string++;
+               if (!strncmp(search_string, cmd_start, strlen(cmd_start)))
                        break;
        }
        if (cmds[i].command)