strtok usesI think you would be better refactoring the code to use strtok_r instead of strtok as it is inherent...