diff options
author | Guillem Jover <guillem@debian.org> | 2016-05-06 01:17:13 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-05-09 03:40:03 +0200 |
commit | 58876fceaf5de97a2ae609ba023d69445d6b0b41 (patch) | |
tree | bc02342625970f3ea2c7fb529b8228433ad1466f /dselect/method.cc | |
parent | 836dc7412c1d5d5fa3825fc5d2761ca1388d38c3 (diff) | |
download | dpkg-58876fceaf5de97a2ae609ba023d69445d6b0b41.tar.gz |
dselect: Do not use fixed size strings for menu entries
Diffstat (limited to 'dselect/method.cc')
-rw-r--r-- | dselect/method.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dselect/method.cc b/dselect/method.cc index 5bcf7de6a..d7d155ef9 100644 --- a/dselect/method.cc +++ b/dselect/method.cc @@ -59,12 +59,9 @@ static int methlockfd= -1; static void sthfailed(const char * reasoning) { - char buf[2048]; - curseson(); clear(); - sprintf(buf,_("\n\n%s: %s\n"),DSELECT,reasoning); - addstr(buf); + printw(_("\n\n%s: %s\n"), DSELECT, reasoning); attrset(A_BOLD); addstr(_("\nPress <enter> to continue.")); attrset(A_NORMAL); |