Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1359 closed bug (fixed (in master))

some string function is broken

Reported by: eddiegrove Owned by:
Milestone: 3.3.0 Keywords:
Cc:

Description

If I squelch MB5 through the 'k' command, the game crashes with a stack corruption error from some C library. If I remove one character from the name, say the final 's', then I can squelch without a crash. I can also create the crash by changing the name of MB2 to the name of MB5 and then squelching MB2.

Change History (3)

comment:1 Changed 8 years ago by d_m

  • Status changed from new to pending

This was a case of a char buffer being too small (50 chars). I upped it to 70 for now. There should probably be a game-imposed limit to name length for monsters, items, etc. (Alternately, the code should be modified to handle names of any length, which seems harder, complicates UI concerns and doesn't serve an obvious purpose).

Fixed in staging.

comment:2 Changed 8 years ago by d_m

  • Resolution set to fixed
  • Status changed from pending to closed

comment:3 Changed 8 years ago by myshkin

  • Milestone changed from Triage to 3.3.0
Note: See TracTickets for help on using tickets.