append a string to the end of the buffer, adjust length */
| 150 | |
| 151 | /* append a string to the end of the buffer, adjust length */ |
| 152 | DAV_DECLARE(void) dav_buffer_append(apr_pool_t *p, dav_buffer *pbuf, |
| 153 | const char *str) |
| 154 | { |
| 155 | apr_size_t len = strlen(str); |
| 156 | |
| 157 | dav_check_bufsize(p, pbuf, len + 1); |
| 158 | memcpy(pbuf->buf + pbuf->cur_len, str, len + 1); |
| 159 | pbuf->cur_len += len; |
| 160 | } |
| 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, |
no test coverage detected