[Xfce4-commits] <midori:master> Fix token parsing in midori_debug

Christian Dywan noreply at xfce.org
Sat Sep 1 18:14:02 CEST 2012


Updating branch refs/heads/master
         to 64c9517459f063c25cd9d329f5f77bbe27318364 (commit)
       from 373ddd5d0ba9d4403ae8d015b4b482509438a350 (commit)

commit 64c9517459f063c25cd9d329f5f77bbe27318364
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Sep 1 17:58:35 2012 +0200

    Fix token parsing in midori_debug

 midori/midori-app.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/midori/midori-app.c b/midori/midori-app.c
index cc43b7e..85dc8e1 100644
--- a/midori/midori-app.c
+++ b/midori/midori-app.c
@@ -1465,7 +1465,7 @@ midori_debug (const gchar* token)
     if (debug_token == NULL)
     {
         gchar* found_token;
-        if (debug && (found_token = strstr (full_debug_tokens, debug)) && *found_token == ' ')
+        if (debug && (found_token = strstr (full_debug_tokens, debug)) && *(found_token + strlen (debug)) == ' ')
         {
             #ifdef G_ENABLE_DEBUG
             debug_token = g_intern_static_string (debug);
@@ -1473,7 +1473,7 @@ midori_debug (const gchar* token)
             g_warning ("Value '%s' for MIDORI_DEBUG requires a full debugging build.", debug);
             #endif
         }
-        else if (debug && (found_token = strstr (debug_tokens, debug)) && *found_token == ' ')
+        else if (debug && (found_token = strstr (debug_tokens, debug)) && *(found_token + strlen (debug)) == ' ')
             debug_token = g_intern_static_string (debug);
         else if (debug)
             g_warning ("Unrecognized value '%s' for MIDORI_DEBUG.", debug);


More information about the Xfce4-commits mailing list