Replaced 'strtok()' by the reentrant 'strtok_r()'.