From 1683a0c106085118f6cd9c7923eaf9a10ef298ef Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 5 Jul 2017 12:04:37 -0400 Subject: [PATCH] audio: trying to pacify static analysis. --- src/audio/SDL_audiocvt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 62887fca1..78e180d00 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -1305,7 +1305,7 @@ SDL_AudioStreamPut(SDL_AudioStream *stream, const void *buf, const Uint32 _bufle return -1; /* probably out of memory. */ } if (buf == origbuf) { /* copy if we haven't before. */ - SDL_memcpy(workbuf, buf, buflen); + SDL_memcpy(workbuf, origbuf, buflen); } stream->cvt_after_resampling.buf = workbuf; stream->cvt_after_resampling.len = buflen;