From 1bb883e8694da270e3bd4686b91ddd490d9567ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20T=C3=B3th?= Date: Fri, 20 Jan 2017 09:31:51 +0100 Subject: [PATCH] fix raw detection paused response --- webhttpd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webhttpd.c b/webhttpd.c index f95a6f85..2fa4b6a1 100644 --- a/webhttpd.c +++ b/webhttpd.c @@ -1214,7 +1214,9 @@ static unsigned int detection(char *pointer, char *res, unsigned int length_uri, send_template_end_client(client_socket); } else { send_template_ini_client_raw(client_socket); - sprintf(res, "Camera %d Detection resumed\nDone\n", cnt[thread]->conf.camera_id); + sprintf(res, "Camera %d%s%s Detection resumed\nDone\n", cnt[thread]->conf.camera_id, + cnt[thread]->conf.camera_name ? " -- " : "", + cnt[thread]->conf.camera_name ? cnt[thread]->conf.camera_name : ""); send_template_raw(client_socket, res); } } else { @@ -1248,7 +1250,7 @@ static unsigned int detection(char *pointer, char *res, unsigned int length_uri, send_template_end_client(client_socket); } else { send_template_ini_client_raw(client_socket); - sprintf(res, "Camera %d%s%s Detection paused\nDone\n", cnt[thread]->conf.camera_id, + sprintf(res, "Camera %d%s%s Detection paused\nDone\n", cnt[thread]->conf.camera_id, cnt[thread]->conf.camera_name ? " -- " : "", cnt[thread]->conf.camera_name ? cnt[thread]->conf.camera_name : ""); send_template_raw(client_socket, res);