MCPcopy Create free account
hub / github.com/apache/httpd / dav_buffer_place

Function dav_buffer_place

modules/dav/main/util.c:163–170  ·  view source on GitHub ↗

place a string on the end of the buffer, do NOT adjust length */

Source from the content-addressed store, hash-verified

161
162/* place a string on the end of the buffer, do NOT adjust length */
163DAV_DECLARE(void) dav_buffer_place(apr_pool_t *p, dav_buffer *pbuf,
164 const char *str)
165{
166 apr_size_t len = strlen(str);
167
168 dav_check_bufsize(p, pbuf, len + 1);
169 memcpy(pbuf->buf + pbuf->cur_len, str, len + 1);
170}
171
172/* place some memory on the end of a buffer; do NOT adjust length */
173DAV_DECLARE(void) dav_buffer_place_mem(apr_pool_t *p, dav_buffer *pbuf,

Callers 1

Calls 1

dav_check_bufsizeFunction · 0.85

Tested by

no test coverage detected