Fixed a bug in the strtok_t function re-implemented for MinGW