Skip to content

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 5487e2b commit 249b611
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/SDL_stdinc.h
Expand Up @@ -259,6 +259,7 @@ do { \
unsigned _n = (_count + 3) / 4; \
Uint32 *_p = (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 249b611

Please sign in to comment.