* This really wants to be a nested function * but C is too feeble to support them. */
| 235 | * but C is too feeble to support them. |
| 236 | */ |
| 237 | static 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 | |
| 253 | static void vhost_alias_interpolate(request_rec *r, const char *name, |
| 254 | const char *map, const char *uri) |
no outgoing calls
no test coverage detected