tidy up strtok use
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1 parent
59f8475924
commit
00da72bee0
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -2556,7 +2556,7 @@ updatepwd(const char *dir)
|
||||
new = stack_putstr(p, new);
|
||||
USTPUTC('/', new);
|
||||
}
|
||||
p = strtok(0, "/");
|
||||
p = strtok(NULL, "/");
|
||||
}
|
||||
if (new > lim)
|
||||
STUNPUTC(new);
|
||||
|
||||
Reference in new issue
Block a user