place a string on the end of the buffer, do NOT adjust length */
| 161 | |
| 162 | /* place a string on the end of the buffer, do NOT adjust length */ |
| 163 | DAV_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 */ |
| 173 | DAV_DECLARE(void) dav_buffer_place_mem(apr_pool_t *p, dav_buffer *pbuf, |
no test coverage detected