]> saetta.ns0.it Git - reptool/libreptool/commitdiff
@Pages didn't work. 0.2.0
authorAndrea Zagli <azagli@libero.it>
Sun, 28 Aug 2011 13:35:53 +0000 (15:35 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 28 Aug 2011 13:36:43 +0000 (15:36 +0200)
fixes #32

src/rptreport.c

index c7886a37904748a5b5a1cf0d5eaa8294fccf45fa..748c94ed277c0a8418f81acb616682d1d2195071 100644 (file)
@@ -2566,11 +2566,11 @@ gchar
        ret = g_strdup ("");
        real_special = g_strstrip (g_strdup (special));
 
-       if (strncmp (real_special, "@Page", 5) == 0)
+       if (g_strcmp0 (real_special, "@Page") == 0)
                {
                        ret = g_strdup_printf ("%d", priv->cur_page);
                }
-       else if (strncmp (real_special, "@Pages", 6) == 0)
+       else if (g_strcmp0 (real_special, "@Pages") == 0)
                {
                        ret = g_strdup ("@Pages");
                }