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

Commit fed0f06b authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

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

parents fbe58079 07f3fee1
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++ = '_';
    }
    }
}
}