Fixed null terminating the X11 error string