Author: abrander
Date: 2010-04-01 22:32:32 +0200 (Thu, 01 Apr 2010)
New Revision: 3303

Modified:
   trunk/src/rs-toolbox.c
Log:
Avoid a strlen().

Modified: trunk/src/rs-toolbox.c
===================================================================
--- trunk/src/rs-toolbox.c      2010-04-01 20:10:27 UTC (rev 3302)
+++ trunk/src/rs-toolbox.c      2010-04-01 20:32:32 UTC (rev 3303)
@@ -925,7 +925,7 @@
        }
 
        GString *temp = g_string_new(lens_text);
-       if (strlen(temp->str) > 25)
+       if (temp->len > 25)
        {
                temp = g_string_set_size(temp, 22);
                temp = g_string_append(temp, "...");


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to