httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Re: WWW Form Bug Report: "compile problem with mod_status.c on SunOS 4.1.3" on SunOS 4.x
Date Wed, 24 Apr 1996 21:52:11 GMT

thanks. this is a known bug that will get fixed before 1.1 is released.


>Submitter: cwk@onramp.net
>Operating system: SunOS 4.x, version: 
>Version of Apache Used: 1.1b2 
>Extra Modules used: mod_status
>URL exhibiting problem: 
>
>Symptoms:
>--
>compile error for mod_status.c because of the difference
>in various version of sprintf.  I changed the set
>of sprintf lines in show_time () to be more portable as:
>
>    if(days)
>      sprintf(&s[strlen(s)]," %ld day%s",days,days==1?"":"s");
>    if(hrs)
>      sprintf(&s[strlen(s)]," %ld hour%s",hrs,hrs==1?"":"s");
>    if(mins)
>      sprintf(&s[strlen(s)]," %ld minute%s",mins,mins==1?"":"s");
>    if(secs)
>      sprintf(&s[strlen(s)]," %ld second%s",secs,secs==1?"":"s");
>
>--
>
>Backtrace:
>--
>
>--

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.

Mime
View raw message