fix buffer overflow

This commit is contained in:
chinhodado 2014-02-19 12:07:45 -05:00
parent f6a5402cef
commit cb39a5d978

View File

@ -306,7 +306,7 @@ public:
break;
default:
ERROR_LOG_REPORT_ONCE(fmtc0_8888, G3D, "Reader: Unsupported C0 Format %d", decFmt_.c0fmt);
memset(color, 0, sizeof(float) * 4);
memset(color, 0, sizeof(u8) * 4);
break;
}
}