Have you seen
eina_str_has_extension (const char *str, const char *ext)
?

BR,

Leif
2011/2/3 Enlightenment SVN <[email protected]>:
> Log:
> Whoops get the number we are strcmping right.
>
>
> Author:       titan
> Date:         2011-02-03 11:30:59 -0800 (Thu, 03 Feb 2011)
> New Revision: 56682
> Trac:         http://trac.enlightenment.org/e/changeset/56682
>
> Modified:
>  trunk/ephoto/src/bin/ephoto_main.c
>
> Modified: trunk/ephoto/src/bin/ephoto_main.c
> ===================================================================
> --- trunk/ephoto/src/bin/ephoto_main.c  2011-02-03 19:26:56 UTC (rev 56681)
> +++ trunk/ephoto/src/bin/ephoto_main.c  2011-02-03 19:30:59 UTC (rev 56682)
> @@ -93,10 +93,10 @@
>    if (ext)
>      {
>         if ((!strncasecmp(ext, ".jpeg", 5)) ||
> -            (!strncasecmp(ext, ".jpg", 5)) ||
> -            (!strncasecmp(ext, ".png", 5)) ||
> -            (!strncasecmp(ext, ".gif", 5)) ||
> -            (!strncasecmp(ext, ".svg", 5)))
> +            (!strncasecmp(ext, ".jpg", 4)) ||
> +            (!strncasecmp(ext, ".png", 4)) ||
> +            (!strncasecmp(ext, ".gif", 4)) ||
> +            (!strncasecmp(ext, ".svg", 4)))
>               return EINA_TRUE;
>      }
>    return EINA_FALSE;
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to