Forgot to take NUL into account