* eina: fix tolower call.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 19 Jul 2010 11:25:10 +0000 (11:25 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 19 Jul 2010 11:25:10 +0000 (11:25 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@50366 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_str.c

index 1833896..2d1f425 100644 (file)
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
+#include <ctype.h>
 
 #ifdef HAVE_ICONV
 # include <errno.h>
@@ -574,7 +575,7 @@ eina_str_tolower(char **str)
    char *p;
    if ((!str) || (!(*str))) return;
 
-   for (p = *str; (*p); *p++)
+   for (p = *str; (*p); p++)
      if ((*p >= 'A') && (*p <= 'Z'))
        *p = tolower(*p);
 }