shithub: sox

Download patch

ref: 19baa672b12aa40b43b2e918f434f75edb8d47fa
parent: 431f3bb91dbfdd67a796c592a23749f74dcb7933
author: robs <robs>
date: Thu Nov 30 15:47:46 EST 2006

Fix for st_hcomwrite with unsigned len.

--- a/src/hcom.c
+++ b/src/hcom.c
@@ -324,7 +324,7 @@
                 }
         }
 
-        while (--len >= 0) {
+        while (len-- > 0) {
                 datum = *buf++;
                 datum >>= 24;
                 datum ^= 128;