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)