httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Poirier <poir...@pobox.com>
Subject Re: svn commit: r910673 - /httpd/httpd/trunk/server/config.c
Date Tue, 16 Feb 2010 22:00:35 GMT
On Tue, Feb 16, 2010, at 03:30:21 PM, Jeff Trawick <trawick@gmail.com> wrote:

>> ==============================================================================
>> --- httpd/httpd/trunk/server/config.c (original)
>> +++ httpd/httpd/trunk/server/config.c Tue Feb 16 20:24:33 2010
>> @@ -1670,7 +1670,7 @@
>>     int current;
>>
>>     /* find the first part of the filename */
>> -    rest = ap_strchr(fname, '/');
>> +    rest = ap_strchr((char*)fname, '/');
>
> Casting isn't the right fix, which I guess is to make rest const char
> * and then use ap_strchr_c() instead of ap_strchr() (hopefully that
> doesn't snowball).

Thanks, that works without snowballing.

Mime
View raw message