diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-02-27 23:46:23 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-02-27 23:46:23 +0100 |
commit | 4507f419bd5417fcd400a3a268f816df480f6e48 (patch) | |
tree | bad663319e18735f041d532981939a8b9198da07 /src/microhttpd/connection.c | |
parent | f4154e6bad19159d55735d075c1a7d47059bfe70 (diff) | |
download | libmicrohttpd-4507f419bd5417fcd400a3a268f816df480f6e48.tar.gz libmicrohttpd-4507f419bd5417fcd400a3a268f816df480f6e48.zip |
eliminate two more strcpy()s
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 0afbe2ac..39253a9f 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -1210,8 +1210,9 @@ try_ready_chunked_body (struct MHD_Connection *connection) | |||
1210 | (0 == response->total_size) ) | 1210 | (0 == response->total_size) ) |
1211 | { | 1211 | { |
1212 | /* end of message, signal other side! */ | 1212 | /* end of message, signal other side! */ |
1213 | strcpy (connection->write_buffer, | 1213 | memcpy (connection->write_buffer, |
1214 | "0\r\n"); | 1214 | "0\r\n", |
1215 | 3); | ||
1215 | connection->write_buffer_append_offset = 3; | 1216 | connection->write_buffer_append_offset = 3; |
1216 | connection->write_buffer_send_offset = 0; | 1217 | connection->write_buffer_send_offset = 0; |
1217 | response->total_size = connection->response_write_position; | 1218 | response->total_size = connection->response_write_position; |