Merge "init: Fix memory corruption when sanitizing platform paths"

This commit is contained in:
Elliott Hughes 2014-09-23 01:55:08 +00:00 committed by Gerrit Code Review
commit fed0f06bf0

View file

@ -329,9 +329,9 @@ void sanitize(char *s)
if (!s) if (!s)
return; return;
for (; *s; s++) { while (*s) {
s += strspn(s, accept); s += strspn(s, accept);
if (*s) *s = '_'; if (*s) *s++ = '_';
} }
} }