X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=sidebar.c;h=cd3db75a294e43045142932d9a9039698e5a63fc;hb=c6b9d35ed9361e4defab9762a7480d5126405ae9;hp=905a6da9b0879fbdaafae93b20d0666ecb937e24;hpb=2ea77d3b2827ba23feb756ce2fb936565ae38998;p=apps%2Fmadmutt.git diff --git a/sidebar.c b/sidebar.c index 905a6da..cd3db75 100644 --- a/sidebar.c +++ b/sidebar.c @@ -230,9 +230,9 @@ int make_sidebar_entry (char* box, int idx, size_t len) shortened = 1; } - snprintf (entry, len-lencnt, "%s", box); + m_strcpy(entry, len - lencnt, box); entry[m_strlen(entry)] = ' '; - strncpy (entry + (len - lencnt), no, lencnt); + m_strcpy(entry + (len - lencnt), lencnt, no); addnstr (entry, len);