shithub: sox

Download patch

ref: bed68352b97e75821d31862d0ff282c0950aed94
parent: c7f9eb39b0be2082ea74d1f62c1b6748f261a1a8
author: robs <robs>
date: Sat Dec 16 07:10:13 EST 2006

Fix parser

--- a/src/speedr.c
+++ b/src/speedr.c
@@ -23,8 +23,8 @@
     is_cents = true, ++argv, --n;
 
   if (n == 1) {
-    char c;
-    int scanned = sscanf(*argv, "%lf%c%*c", &speed, &c);
+    char c, dummy;
+    int scanned = sscanf(*argv, "%lf%c %c", &speed, &c, &dummy);
     if (scanned == 1 || (scanned == 2 && c == 'c')) {
       is_cents |= scanned == 2;
       if (is_cents || speed > 0) {