What's the point of this 0? Everything here assumes the string is not null-terminated, right?