Hi there,
While trying to build giflib on CloudABI (https://nuxi.nl/), I noticed
that giflib uses the strtok() function in a couple of places. The use
of strtok() is heavily discouraged, as it is not thread-safe. This
potentially makes it harder to use giflib in multi-threaded programs.
Attached is a patch to let giflib use strtok_r() instead. It also
removes some of the casts in there, which look suspicious. The
functions are already called with arguments of the right type.
Best regards,
--
Ed Schouten <ed...@nu...>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717
|