Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug #746
Browse files Browse the repository at this point in the history
Fixed freeze when trying to memset with 0 length
  • Loading branch information
slouken committed Aug 7, 2009
1 parent fef3494 commit ba74afa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/SDL_stdinc.h
Expand Up @@ -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; \
Expand Down

0 comments on commit ba74afa

Please sign in to comment.