evan_tech

Previous Entry Share Flag Next Entry
08:40 am, 28 Jan 05

find the bug!

A friend got me with this one:
... One of my co-workers has spent the past 4 days debugging garbled output from the UI library I own ... The problem ended up being in his code:

string displayable = longerString.substr( 0, COLS );
Where’s the bug?
(If you wanna hide your answers I think you can wrap them in <div style='color: white; background: white'></div>.)