~hp/eteroj.lv2

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

M src/eteroj_io.c
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)