| [AD] Liitle Unicode patch |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
The current implementation of usprintf() doesn't conform to ANSI C for the
following case:
char in_string[8]="";
usprintf(out_str, "* %7s *", in_str);
ANSI C requires out_str to be equal to "* *" whereas usprintf()
currently gives "* *". The attached patch fixes the problem.
[Note: The problem was there before the fix for the memory leak.]
--
Eric Botcazou
ebotcazou@xxxxxxxxxx
Attachment:
unicode3.diff
Description: Binary data
| Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |