ref: 5b1e9a75471cec9543948a9405fc5b1966750164
parent: 35b98e0f4f5d021690beb4f274e637e327063e62
author: cbagwell <cbagwell>
date: Mon Feb 20 22:12:04 EST 2006
Fix broken internal strdup function.
--- a/Changelog
+++ b/Changelog
@@ -13,13 +13,16 @@
effect drain operations. This was bad if effects had
bugs and stuck in infinite loop.
o Stop SoX from crashing when file type could not be auto
- determined (bug 1417776).
- o Output filenames with multiple '.' confused SoX. (Christian Hammers)
+ determined (1417776).
+ o Output filenames with multiple '.' confused SoX. (1417776)
+ Christian Hammer
o Moved to a common set of CLIP routines. This fixed clipping
bugs in noisered and mcompand.
o Stop SoX from crashing on sphere files that contain large text
- strings. Ulf Hamhammar
- o Fix some overflow crashes in aiff handler. Ulf Hamhammar.
+ strings. (1430025) Ulf Hamhammar
+ o Fix some overflow crashes in aiff handler. (1430024) Ulf Hamhammar.
+ o Under windows, set piped input to binary mode (1417794). Marty
+ o Fixed broken internal version of strdup(). (1417790) Marty
sox-12.17.9
-----------
--- a/src/misc.c
+++ b/src/misc.c
@@ -401,9 +401,9 @@
{
char *dups;
- dups = (char *)malloc(strlen(s+1));
+ dups = (char *)malloc(strlen(s)+1);
strcpy(dups, s);
- return s;
+ return dups;
}
#endif