Fixed freeze when trying to memset with 0 length
This commit is contained in:
Sam Lantinga 2009-08-07 10:20:10 +00:00
parent d705b73ca4
commit 0449f9f82c

View File

@ -319,6 +319,7 @@ do { \
unsigned _n = (_count + 3) / 4; \
Uint32 *_p = SDL_static_cast(Uint32 *, dst); \
Uint32 _val = (val); \
if (len == 0) break; \
switch (_count % 4) { \
case 0: do { *_p++ = _val; \
case 3: *_p++ = _val; \