discover: Null-terminate buffer in user_event_process()