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
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to