GNOME Bugzilla – Bug 574998
lib/engine/protocol/codec-description.h uses strtok
Last modified: 2009-03-17 20:29:42 UTC
The documentation says not to use it -- which is already a bad sign. That code also does a "(char*)foo.c_str ()" to get *write* access to the underlying C string of a std::string -- and strtok effectively modifies it according to its man page. Using g_strsplit/g_strfreev will be better. I'll fix it when code freeze will be over.
Changing milestone then (not to forget it).
Sigh... if we ever go the boost way, then : http://www.boost.org/doc/libs/1_38_0/doc/html/string_algo/usage.html#id4002194 is probably simpler.