Genii Weblog

Second success for SWAT team

Fri 14 May 2004, 04:48 AM



by Ben Langhinrichs
The second reproduced and fixed bug due to the SWAT team's reporting was found.  This was odd.  After several strings of text, all set to the same font, but set explicitly, somewhat like:

<font color='Black' size='2' face='Courier New'>Text 1</font><font color='Black' size='2' face='Courier New'>Text 2</font><font color='Black' size='2' face='Courier New'>Text 3</font><font color='Black' size='2' face='Courier New'>Text 4</font>

the font inexplicably changed from Courier New to Aria for subsequent text.  This was a more buried bug, but basically happened because an array was defined with its parameters switched, so instead of 

saved_fontnames[MAX_SAVED_FONTFACES][MAXFACESIZE+1];

it had

saved_fontnames[MAXFACESIZE+1][MAX_SAVED_FONTFACES];

which had the odd reaction.  Fortunately, the loop could never exceed the incorrect parameter, so it didn't produce crashes, but it did produce odd results after the tenth iteration.

Success #2

Copyright © 2004 Genii Software Ltd.

What has been said:

No documents found