]> git.ipfire.org Git - thirdparty/kmod.git/commit
Use strtok_r insteat of strtok
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 1 Dec 2011 20:59:54 +0000 (18:59 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 1 Dec 2011 20:59:54 +0000 (18:59 -0200)
commitc11e62bfd425fe4bcbb1729215bf18f16f97f768
treea9e61fbb3c1ed466d6564a40aefab52f45991dcd
parentbf89f76eaa799b007882da6ca97830a1aa3f022b
Use strtok_r insteat of strtok

strtok is not thread-safe because it uses a static pointer to keep track
of position in the string. Using strtok_r solves the problem.
libkmod/libkmod-config.c