|
From: Ulrich K. <ul...@ch...> - 2013-01-30 16:54:34
|
Ryo Okamoto <ry...@aq...>:
> It seems the compand effect option parser has a bug.
> Bus error (or segfault) occurs at compand.c line 86:
> around strtok() with sox-14.4.0.
Thanks for reporting, and especially for the demonstration code.
> for (i = 0, s = strtok(argv[0], ","); s != NULL; ++i) {
compand.c here has the great idea to modify its arguments. :-/ Bad if
you want to reuse them, even worse if they are string literals that
can't be modified, as in this case:
> args[0] = "0.02,0.2";
Going to fix this later.
Ulrich
|