X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=curs_lib.c;h=b8b80addb8ebf11c59c618f24b93c9368587b0c7;hp=b779a923afb376bb3ee240ef58f0ef4541e0e510;hb=1b7e35d0720400f2566023146257c0a3bf89ce87;hpb=c3e57678c8be193fc137854020f3a90887be97c9 diff --git a/curs_lib.c b/curs_lib.c index b779a92..b8b80ad 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -3,6 +3,9 @@ * Copyright (C) 1996-2002 Michael R. Elkins * Copyright (C) 2004 g10 Code GmbH * + * Parts were written/modified by: + * Nico Golde + * * This file is part of mutt-ng, see http://www.muttng.org/. * It's licensed under the GNU General Public License, * please see the file GPL in the top level source directory. @@ -18,6 +21,10 @@ #include "pager.h" #include "mbyte.h" +#include "lib/mem.h" +#include "lib/intl.h" +#include "lib/str.h" + #include #include #include @@ -210,7 +217,7 @@ int mutt_yesorno (const char *msg, int def) answer_string = safe_malloc (COLS + 1); snprintf (answer_string, COLS + 1, " ([%s]/%s): ", def == M_YES ? yes : no, def == M_YES ? no : yes); - answer_string_len = strlen (answer_string); + answer_string_len = mutt_strlen (answer_string); printw ("%.*s%s", COLS - answer_string_len, msg, answer_string); FREE (&answer_string);