On Sun, Oct 30, 2011 at 06:28:03AM -0200, Gustavo Sverzut Barbieri wrote:
> Tom is right. You just want to compare the prefix, but you're not sure
> icon_path is >= 7 bytes thus strncmp() and not memcmp().  strncmp() is
> to be used and not the traditional (strcmp()) as you just want the
> prefix.

If the icon_path is shorter, it will not match as it contains a NUL byte
earlier.

Joerg

------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World™ now supports Android™ Apps 
for the BlackBerry® PlayBook™. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to