summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libwaitress/waitress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c
index 9135ce0..fb082ba 100644
--- a/src/libwaitress/waitress.c
+++ b/src/libwaitress/waitress.c
@@ -682,7 +682,7 @@ WaitressReturn_t WaitressFetchCall (WaitressHandle_t *waith) {
FINISH (WAITRESS_RET_CONNECTION_CLOSED);
}
bufFilled += recvSize;
- memset (buf+bufFilled, 0, WAITRESS_BUFFER_SIZE - bufFilled);
+ buf[bufFilled] = '\0';
thisLine = buf;
/* split */