Evan Martin (evan) wrote in evan_tech,
Evan Martin
evan
evan_tech

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>.)
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 20 comments