Fix bad pointer for message when examining WELCOME message

This commit is contained in:
Kevin Lange 2016-11-24 17:49:11 +09:00
parent 6d6bd7f4c8
commit cf17594916

View File

@ -57,7 +57,7 @@ yutani_msg_t * yutani_poll(yutani_t * y) {
}
if (out->type == YUTANI_MSG_WELCOME) {
struct yutani_msg_welcome * mw = (void *)out;
struct yutani_msg_welcome * mw = (void *)out->data;
y->display_width = mw->display_width;
y->display_height = mw->display_height;
}