Skip to content
Permalink
Browse files

Fixed bug #746

Fixed freeze when trying to memset with 0 length
  • Loading branch information
slouken committed Aug 7, 2009
1 parent 5487e2b commit 249b6112345f43624acd110972143fae1dc50515
Showing with 1 addition and 0 deletions.
  1. +1 −0 include/SDL_stdinc.h
@@ -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; \

0 comments on commit 249b611

Please sign in to comment.