From: Pierre Habouzit Date: Mon, 30 Oct 2006 16:56:27 +0000 (+0100) Subject: fix sidebar counters. X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=46874ad2a0d0a6a66e4bfec16dfa349bf07c632a fix sidebar counters. Signed-off-by: Pierre Habouzit --- diff --git a/sidebar.c b/sidebar.c index cd3db75..f86597c 100644 --- a/sidebar.c +++ b/sidebar.c @@ -232,7 +232,7 @@ int make_sidebar_entry (char* box, int idx, size_t len) m_strcpy(entry, len - lencnt, box); entry[m_strlen(entry)] = ' '; - m_strcpy(entry + (len - lencnt), lencnt, no); + memcpy(entry + (len - lencnt), no, lencnt); addnstr (entry, len);