From 46874ad2a0d0a6a66e4bfec16dfa349bf07c632a Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Mon, 30 Oct 2006 17:56:27 +0100 Subject: [PATCH] fix sidebar counters. Signed-off-by: Pierre Habouzit --- sidebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1