Skip to content

Commit

Permalink
audio: trying to pacify static analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 5, 2017
1 parent c80c341 commit 1683a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_audiocvt.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1683a0c

Please sign in to comment.