Mercurial > MadButterfly
diff src/sprite.c @ 399:31b6633e3538
- Fix a minor error in src/sprite.c: should check *(s-1) instead of
*s or the pointer will stop at '/', which is not what we want.
- Fix various load path errors in examples because libtool put .so
into .libs directory.
- Fix an error in examples/dynamic/Makefile.am: scene_la_SOURCES
should be scene.c instead of mytext.c
author | john.cylee@gmail.com |
---|---|
date | Fri, 12 Jun 2009 18:36:15 +0800 |
parents | 25bc0e753b88 |
children | 16116d84bc5e |
line wrap: on
line diff
--- a/src/sprite.c Fri Jun 12 11:23:59 2009 +0800 +++ b/src/sprite.c Fri Jun 12 18:36:15 2009 +0800 @@ -57,7 +57,7 @@ return NULL; } s = name + strlen(name)-1; - while((s != name) && *s != '/') s--; + while((s != name) && *(s-1) != '/') s--; snprintf(path,sizeof(path), "%s_new", s); new = dlsym(handle,path); if (new == NULL) {