Use strtok_r()/strtok_s() instead of regular strtok()

This commit is contained in:
Cameron Gutman
2023-09-12 20:36:19 -05:00
parent 2bb026c763
commit 91b4186b8a
3 changed files with 15 additions and 7 deletions

View File

@@ -52,6 +52,12 @@
# endif
#endif
#ifdef LC_WINDOWS
// Windows doesn't have strtok_r() but it has the same
// function named strtok_s().
#define strtok_r strtok_s
#endif
#include <stdio.h>
#include "Limelight.h"