[prev in list] [next in list] [prev in thread] [next in thread]
List: cherokee
Subject: Re: [Cherokee] R: Running 6.00b700 w/ OpenSSL in Windows
From: Alvaro Lopez Ortega <alvaro () gnu ! org>
Date: 2007-06-27 15:21:43
Message-ID: 46828087.6070801 () gnu ! org
[Download RAW message or body]
Ross Smith II wrote, On 27/06/07 15:49:
> As I explained in a previous post, line 35 of win32_misc.h includes:
> #define strerror(e) win_strerror(e)
>
> and since win_strerror() calls strerror(), infinite recursion results.
> Also, string.h doesn't #define strerror(), it just extern's it (at
> least in MinGW's version).
Gisle Vanem wrote, On 27/06/07 15:55:
> Since I wrote that, I should comment. Ross is right, there should be
> an "#undef strerror" before using strerror() in win32_misc.c (otherwise
> an infinite recursion would be the result).
>
> Or better yet do:
> if (err >= 0 && err < sys_nerr) {
> strncpy (buf, (strerror)(err), sizeof(buf)-1);
Yeah, you are right!!
r776 has fixed it, thank you guys for the patch!
--
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokee@cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic