Update net_services.c

buf was overflowing in sprintf on line 1163 when passed /api/dynamicconfig (the whole string was 54 characters).
pull/192/head
Ag Primatic 2023-02-04 14:42:34 -05:00 committed by GitHub
parent c4d9472870
commit a84a528044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1076,7 +1076,7 @@ void action_web_request(struct mg_connection *nc, struct http_message *http_msg)
}
//} else if (strstr(http_msg->method.p, "PUT")) {
} else {
char buf[50];
char buf[100];
float value = 0;
DEBUG_TIMER_START(&tid);