[oss-devel] [PATCH] ossxmix - dynamically allocate arrays and other changes
Hannu Savolainen
hannu at opensound.com
Wed Feb 6 22:12:44 EET 2008
Yair K. wrote:
> Hi,
>
> Clive found that an strdup which I removed earlier is neccesary for the
> strings in the pull-down comboxes to appear correctly (strangely, I have no
> problems without it). This patch adds it back.
>
The strdup() calls are required because showenum() returns a pointer to
a static buffer. Subsequent calls wipe out the earlier returned values
unless they are copied somewhere else.
This fix is now in the hg version.
Best regards,
Hannu
More information about the oss-devel
mailing list