GUI: crash when pressing "delete" at the end of the name
|Reported by:||SF/richiefs||Owned by:||fingolfin|
When editing a game settings in the gui, press "delete" when at the end of the game name --> scummvm crashes with error:
Assertion failed: p < _len, file common/str.cpp, line 217
Ticket imported from: #1570189. Ticket imported from: bugs/2850.