From 4fa3c39b552587339c21d03258890347d3369c49 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 27 Apr 2015 16:18:59 +0300 Subject: [PATCH] Show only beginning of annotation when redoing it --- src/dungeon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dungeon.c b/src/dungeon.c index 43f4afab1..3d1bfcb65 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -1868,9 +1868,9 @@ donamelevel() if (!(mptr = find_mapseen(&u.uz))) return 0; if (mptr->custom) { - const char querystr[] = "Replace annotation \"%s\" with?"; - char tmpbuf[BUFSZ + sizeof(querystr)]; - Sprintf(tmpbuf, querystr, mptr->custom); + char tmpbuf[BUFSZ]; + Sprintf(tmpbuf, "Replace annotation \"%.30s%s\" with?", + mptr->custom, strlen(mptr->custom) > 30 ? "..." : ""); getlin(tmpbuf, nbuf); } else getlin("What do you want to call this dungeon level?", nbuf);