NEVER, EVER should modify the stringshared pointer.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Sat, 1 May 2010 16:02:03 +0000 (16:02 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Sat, 1 May 2010 16:02:03 +0000 (16:02 +0000)
commit4cd34cc5e819b503e8b3152f8bc4cedf18497442
treee364306ea8224cd527cb8a93fe52704084d397f1
parent46ada2a38bad83148bc9f9640cc5731e373d0d9c
NEVER, EVER should modify the stringshared pointer.

That is why stringshare returns "const char*".

ZMike, pay attention to these cases. I know this one was particularly
nasty to spot since you receive the "const char *path", but later on
you request strrchr(path..) and receive "char *p", the cast is done
implicitly by libC to make all the case works (C++ version fixed this
recently, but in C there is no way).

The crash that lead me to investigate it was spot by Lucas De Marchi
at advanced wallpaper dialog, but actually other places that uses efm
should be equaly broken.

SVN revision: 48508
src/bin/e_fm.c