diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index 07aa2da2e..58da0a2a0 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -2770,7 +2770,7 @@ updatepwd(const char *dir) lim++; } } - p = strtok(cdcomppath, "/"); + p = strtok_r(cdcomppath, "/", &cdcomppath); while (p) { switch (*p) { case '.': @@ -2789,7 +2789,7 @@ updatepwd(const char *dir) new = stack_putstr(p, new); USTPUTC('/', new); } - p = strtok(NULL, "/"); + p = strtok_r(NULL, "/", &cdcomppath); } if (new > lim) STUNPUTC(new); |