Skip to content
This repository has been archived by the owner. It is now read-only.
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 fef3494 commit ba74afaf48421895937170fcd45e8873b507ae23
Showing with 1 addition and 0 deletions.
  1. +1 −0 include/SDL_stdinc.h
@@ -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; \

0 comments on commit ba74afa

Please sign in to comment.