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

* commit 'ae3a8961f01e436a70cab569483b8ebcc1f56c0c':
  init: Fix memory corruption when sanitizing platform paths
This commit is contained in:
Elliott Hughes 2014-09-23 02:16:48 +00:00 committed by Android Git Automerger
commit 2e826dc2b1

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