BUGS-P2Practice 2 of 3Type an answer

Twenty-five characters, sixteen boxes

A program sets aside a buffer of 16 boxes for a city name and copies input into it without checking the length. Someone types a 25-character name.

How many characters spill past the end of the buffer?

Builds on BUGS-2 Too much input: buffer overflows.

Need a hint?

Open the hints one at a time. The worked solution unlocks after the last hint.

  1. 1Nudge

  2. 2Approach

    Opens after hint 1.

  3. 3Walk-through

    Opens after hint 2.

  4. Worked solution

    Locked. Open all 3 hints first.

Instructor