Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » ustrerror() bug, Allegro 4.0.3

This thread is locked; no one can reply to it. rss feed Print
ustrerror() bug, Allegro 4.0.3
Tobi Vollebregt
Member #1,031
March 2001

I was searching something in the Allegro 4.0.3 sourcecode, file unicode.c, when I noticed a bug in ustrerror():

It takes the return value from the ASNI strerror() functions, and returns this string converted to current encoding format. But the conversion is done into a non-static buffer here.

Obviously that buffer should be static.

________________________________________
website || Zipfile reader @ Allegro Wiki || Download zipfile reader

Member #12
Member #12
April 2000

Well spotted. It is fixed now in CVS, both WIP and stable versions.

Go to: