httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: SERVER_VERSION with OS
Date Mon, 20 Apr 1998 20:03:33 GMT
Rodent of Unusual Size wrote:
> 
> Jim Jagielski wrote:
> > 
> > Yeah... Ken's idea was a good one. If we set the max-length of SERVER_VERSION
> > to some value, then we can allocate it at compile time and then strncat
> > the "comments" and "additions" run-time.
> 
> +API_EXPORT(void) ap_add_version_component(const char *s)
> +{
> +    if (idpool == NULL) {
> +        idpool = ap_make_sub_pool(NULL);
> +    }
> +    server_version = ap_pstrcat(idpool, server_version, " ", s, NULL);
> +}
>  

Yep.

-- 
===========================================================================
   Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

Mime
View raw message