Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35d60174 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am 28891d26: am ae3a8961: am fed0f06b: Merge "init: Fix memory corruption when...

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

* commit '28891d26':
  init: Fix memory corruption when sanitizing platform paths
parents 8647769f 28891d26
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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++ = '_';
    }
    }
}
}