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

* commit 'fed0f06bf04c6de90ae7b2f8ae9158ab2200498e':
  init: Fix memory corruption when sanitizing platform paths
This commit is contained in:
Elliott Hughes 2014-09-23 02:05:55 +00:00 committed by Android Git Automerger
commit ae3a8961f0

View file

@ -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++ = '_';
}
}