Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string')
-rw-r--r--newlib/libc/string/strtok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/string/strtok.c b/newlib/libc/string/strtok.c
index 17228d223..292c16743 100644
--- a/newlib/libc/string/strtok.c
+++ b/newlib/libc/string/strtok.c
@@ -73,7 +73,7 @@ _DEFUN (strtok, (s, delim),
register char *s _AND
register const char *delim)
{
- static char *last;
- return strtok_r (s, delim, &last);
+ _REENT_CHECK_MISC(_REENT);
+ return strtok_r (s, delim, &(_REENT_STRTOK_LAST(_REENT)));
}
#endif