am 28891d26: am ae3a8961: am fed0f06b: Merge "init: Fix memory corruption when sanitizing platform paths"
* commit '28891d262f21988ef3d43e4a3dfca0c9d4370cf8': init: Fix memory corruption when sanitizing platform paths
This commit is contained in:
commit
35d6017457
1 changed files with 2 additions and 2 deletions
|
|
@ -329,9 +329,9 @@ void sanitize(char *s)
|
|||
if (!s)
|
||||
return;
|
||||
|
||||
for (; *s; s++) {
|
||||
while (*s) {
|
||||
s += strspn(s, accept);
|
||||
if (*s) *s = '_';
|
||||
if (*s) *s++ = '_';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue