Skip to content

Commit

Permalink
Fix Hardcoded len in HttpHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Oct 8, 2023
1 parent d21fafe commit 2659880
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/AudioHttp/HttpHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ class HttpHeader {
return;
}

char msg[200];
Str msg_str(msg,200);
char msg[MAX_HTTP_REQ_LEN];
Str msg_str(msg,MAX_HTTP_REQ_LEN);
msg_str = header->key.c_str();
msg_str += ": ";
msg_str += header->value.c_str();
Expand Down Expand Up @@ -448,8 +448,8 @@ class HttpReplyHeader : public HttpHeader {
// HTTP-Version SP Status-Code SP Reason-Phrase CRLF
void write1stLine(Client &out){
LOGI("HttpReplyHeader::write1stLine");
char msg[200];
Str msg_str(msg,200);
char msg[MAX_HTTP_REQ_LEN];
Str msg_str(msg, MAX_HTTP_REQ_LEN);
msg_str = this->protocol_str.c_str();
msg_str += " ";
msg_str += this->status_code;
Expand Down

0 comments on commit 2659880

Please sign in to comment.