Skip to content

Commit 8b90c50

Browse files
caeiesDimitriPapadopoulos
authored andcommitted
Http: fixes missing '\0' in debug.
1 parent e415c5b commit 8b90c50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/http.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ int http_receive(struct tunnel *tunnel,
178178
return ERR_HTTP_TLS;
179179
}
180180
bytes_read += n;
181+
buffer[bytes_read] = '\0';
181182

182183
log_debug_details("%s:\n%s\n", __func__, buffer);
183184

0 commit comments

Comments
 (0)