diff --git a/src/modules/http_async_client/async_http.c b/src/modules/http_async_client/async_http.c index d86f8a68a02..000659cd295 100644 --- a/src/modules/http_async_client/async_http.c +++ b/src/modules/http_async_client/async_http.c @@ -192,6 +192,8 @@ void async_http_cb(struct http_m_reply *reply, void *param) aq = param; strncpy(q_id, aq->id, strlen(aq->id)); + q_id[strlen(aq->id)] = '\0'; + act = (cfg_action_t*)aq->param; cfg_update();