Fix potential buffer overrun in new saved-session menu