diff --git a/src/hlua_fcn.c b/src/hlua_fcn.c index 36c5f98d0..f204c0a04 100644 --- a/src/hlua_fcn.c +++ b/src/hlua_fcn.c @@ -2870,7 +2870,7 @@ int hlua_patref_add(lua_State *L) if (!ret) { - ret = hlua_error(L, errmsg); + ret = hlua_error(L, "%s", errmsg); ha_free(&errmsg); return ret; } @@ -2919,7 +2919,7 @@ static int _hlua_patref_add_bulk(lua_State *L, int status, lua_KContext ctx) if (!pat_ref_load(ref->ptr, curr_gen, key, value, -1, &errmsg)) { HA_RWLOCK_WRUNLOCK(PATREF_LOCK, &ref->ptr->lock); - ret = hlua_error(L, errmsg); + ret = hlua_error(L, "%s", errmsg); ha_free(&errmsg); return ret; } @@ -3023,7 +3023,7 @@ int hlua_patref_set(lua_State *L) HA_RWLOCK_WRUNLOCK(PATREF_LOCK, &ref->ptr->lock); if (!ret) { - ret = hlua_error(L, errmsg); + ret = hlua_error(L, "%s", errmsg); ha_free(&errmsg); return ret; }