Fix for out of bounds write while dragging

This commit is contained in:
Campbell Barton 2014-08-06 12:13:11 +10:00
parent 4cf531f7a0
commit 9ece95de48

@ -1264,7 +1264,7 @@ static bool ui_but_start_drag(bContext *C, uiBut *but, uiHandleButtonData *data,
valid = true;
}
else if (but->pointype == UI_BUT_POIN_CHAR) {
rgba_uchar_to_float(drag_info->color, (unsigned char *)but->poin);
rgb_uchar_to_float(drag_info->color, (unsigned char *)but->poin);
valid = true;
}