[Goodies-commits] r5348 - xfce4-smartpm-plugin/trunk/src

Anders F Bjorklund afb at xfce.org
Thu Sep 4 09:48:23 CEST 2008


Author: afb
Date: 2008-09-04 07:48:23 +0000 (Thu, 04 Sep 2008)
New Revision: 5348

Modified:
   xfce4-smartpm-plugin/trunk/src/xfcesmart.c
Log:
avoid mungling start of error string

Modified: xfce4-smartpm-plugin/trunk/src/xfcesmart.c
===================================================================
--- xfce4-smartpm-plugin/trunk/src/xfcesmart.c	2008-09-04 07:38:35 UTC (rev 5347)
+++ xfce4-smartpm-plugin/trunk/src/xfcesmart.c	2008-09-04 07:48:23 UTC (rev 5348)
@@ -229,7 +229,8 @@
     {
       if (strstr(p, "error: ") != NULL)
       {
-        p += strlen("error: ");
+        if (strlen(p) > 7 && memcmp(p, "error: ", 7) == 0)
+            p += strlen("error: ");
         msg = g_strdup(p);
         p = msg + strlen(msg) - 1;
         if (*p == '\n') *p = '\0';




More information about the Goodies-commits mailing list