[crash PATCH] GDB: prevent overflow in the rl_set_screen_size()