#3842 closed defect (fixed)
KYRA1: long savegame names cause garbage
Reported by: | SF/clemty | Owned by: | lordhoto |
---|---|---|---|
Priority: | normal | Component: | Engine: Kyra |
Version: | Keywords: | ||
Cc: | Game: | Kyrandia 1 |
Description
0.12.0svn, win32, kyra1 cd german
when giving a savegame a long name (until it's not possible to enter another character), something goes awry and the previous savegame name is appended. see attached screenshot
Ticket imported from: #2035459. Ticket imported from: bugs/3842.
Attachments (1)
Change History (6)
by , 16 years ago
Attachment: | kyra1-stringbug.png added |
---|
comment:1 by , 16 years ago
Owner: | set to |
---|
comment:2 by , 16 years ago
Seems to me like if (length < 31) { in gui_lok.cpp:676 should be if (length < 30) { (_savegameName is 31 characters wide, so if it already has 30 characters, adding one will override the \0, which produces the noted effect)
Of course, now there may already be saves without a terminating \0 out in the wild...
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 6 years ago
Component: | → Engine: Kyra |
---|---|
Game: | → Kyrandia 1 |
Note:
See TracTickets
for help on using tickets.
long string causes savegame name distortion