httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Rob Hartill)
Subject Re: WWW Form Bug Report: "strdup expected in support/logresolve.c" on NeXT
Date Thu, 04 Jul 1996 06:47:44 GMT

Thanks again. I'm passing these on to the developers list for


>Operating system: NeXT, version: 3.3
>Version of Apache Used: 1.1
>Extra Modules used: shouldn't matter
>URL exhibiting problem: 
>I don't know if this counts as an Apache bug, or
>an OS bug :), but support/logresolve.c expects 
>to have the strdup function available. NeXTStep
>3.3 does not provide this.
>To fix the problem,
>I linked my own strdup function into the code.
>Since it is short, I've included it below. It may
>need to be fixed up for industrial strength use,
>although I've never had a problem with it before.
>#include <string.h>
>char *strdup(const char *s)
>        char *ret = (char *) malloc(strlen(s)+1);
>        if (!ret) return (char *) NULL;
>        strcpy(ret, s);
>        return ret;

Rob Hartill (
The Internet Movie Database (IMDb)
           ...more movie info than you can poke a stick at.

View raw message