audio: trying to pacify static analysis.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 05 Jul 2017 12:04:37 -0400
changeset 111289dda3f3e9794
parent 11127 97c66d81b2c9
child 11129 4785560cdd03
audio: trying to pacify static analysis.
src/audio/SDL_audiocvt.c
     1.1 --- a/src/audio/SDL_audiocvt.c	Tue Jul 04 20:44:07 2017 -0400
     1.2 +++ b/src/audio/SDL_audiocvt.c	Wed Jul 05 12:04:37 2017 -0400
     1.3 @@ -1305,7 +1305,7 @@
     1.4              return -1;  /* probably out of memory. */
     1.5          }
     1.6          if (buf == origbuf) {  /* copy if we haven't before. */
     1.7 -            SDL_memcpy(workbuf, buf, buflen);
     1.8 +            SDL_memcpy(workbuf, origbuf, buflen);
     1.9          }
    1.10          stream->cvt_after_resampling.buf = workbuf;
    1.11          stream->cvt_after_resampling.len = buflen;