pkgsrc/audio/sox/patches/patch-src_oss.c
bsiegert 62a797d447 Add patches to prevent a segfault when playing certain WAV files. From
Onno van der Linden in PR pkg/49929. Also submitted upstream.
Bump PKGREVISION.
2015-05-25 19:06:24 +00:00

14 lines
428 B
C

$NetBSD: patch-src_oss.c,v 1.1 2015/05/25 19:06:24 bsiegert Exp $
Fix segfault when playing (PR pkg/49929).
--- src/oss.c.orig 2015-05-25 18:58:54.000000000 +0000
+++ src/oss.c
@@ -369,7 +369,7 @@ static size_t osswrite(
size_t cbStride;
int cbWritten;
- cStride = cInput;
+ cStride = cInputRemaining;
if (cStride > pPriv->cOutput) {
cStride = pPriv->cOutput;
}