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

Function vhost_alias_checkspace

modules/mappers/mod_vhost_alias.c:237–251  ·  view source on GitHub ↗

* This really wants to be a nested function * but C is too feeble to support them. */

Source from the content-addressed store, hash-verified

235 * but C is too feeble to support them.
236 */
237static APR_INLINE void vhost_alias_checkspace(request_rec *r, char *buf,
238 char **pdest, int size)
239{
240 /* XXX: what if size > HUGE_STRING_LEN? */
241 if (*pdest + size > buf + HUGE_STRING_LEN) {
242 **pdest = '\0';
243 if (r->filename) {
244 r->filename = apr_pstrcat(r->pool, r->filename, buf, NULL);
245 }
246 else {
247 r->filename = apr_pstrdup(r->pool, buf);
248 }
249 *pdest = buf;
250 }
251}
252
253static void vhost_alias_interpolate(request_rec *r, const char *name,
254 const char *map, const char *uri)

Callers 1

vhost_alias_interpolateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected