summaryrefslogtreecommitdiff
path: root/audio/sox/patches/patch-src_sunaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sox/patches/patch-src_sunaudio.c')
-rw-r--r--audio/sox/patches/patch-src_sunaudio.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/audio/sox/patches/patch-src_sunaudio.c b/audio/sox/patches/patch-src_sunaudio.c
new file mode 100644
index 00000000000..143b07c81d3
--- /dev/null
+++ b/audio/sox/patches/patch-src_sunaudio.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_sunaudio.c,v 1.1 2015/05/25 19:06:24 bsiegert Exp $
+
+Fix segfault when playing (PR pkg/49929).
+--- src/sunaudio.c.orig 2015-05-25 19:00:39.000000000 +0000
++++ src/sunaudio.c
+@@ -443,7 +443,7 @@ static size_t sunwrite(
+ size_t cbStride;
+ int cbWritten;
+
+- cStride = cInput;
++ cStride = cInputRemaining;
+ if (cStride > pPriv->cOutput) {
+ cStride = pPriv->cOutput;
+ }