[PATCH] server: Only allocate the required size in get_rawinput_buffer.