~hp/eteroj.lv2

d9701c84a7eab2d27d2e8807390360cc3739fe9d — Hanspeter Portner 6 months ago 2171a08
Fix strerror_l invocation to be XSI-compliant
2 files changed, 5 insertions(+), 6 deletions(-)

M meson_options.txt
M src/eteroj_io.c
M meson_options.txt => meson_options.txt +1 -1
@@ 9,4 9,4 @@ option('lv2libdir',
	type : 'string',
	value : 'lib/lv2')

option('version', type : 'string', value : '0.11.61')
option('version', type : 'string', value : '0.11.63')

M src/eteroj_io.c => src/eteroj_io.c +4 -5
@@ 550,16 550,15 @@ run(LV2_Handle instance, uint32_t nsamples)
static inline void
_handle_enum(plughandle_t *handle, LV2_OSC_Enum ev)
{
	const char *err = "";
	char err [STR_LEN] = { '\0' };

	if(ev & LV2_OSC_ERR)
	{
		char buf [STR_LEN] = { '\0' };
		err = strerror_r(ev & LV2_OSC_ERR, buf, sizeof(buf));
		strerror_r(ev & LV2_OSC_ERR, err, sizeof(err));

		if(!err)
		if(strlen(err) == 0)
		{
			err = "Unknown";
			snprintf(err, sizeof(err), "%s", "Unknown");
		}

		if(handle->log)