X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=curs_main.c;h=81d59c2d0a5b1bf4290919dde692482942255bdb;hb=d9960a434f5c00a534a0dabe02ae5ab8d4881569;hp=fe652871df619cca568994628b1655da2d321f75;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd;p=apps%2Fmadmutt.git diff --git a/curs_main.c b/curs_main.c index fe65287..81d59c2 100644 --- a/curs_main.c +++ b/curs_main.c @@ -445,7 +445,7 @@ int mutt_index_menu (void) sidebar_set_current (Context->path); } - FOREVER { + for (;;) { tag = 0; /* clear the tag-prefix */ menu->max = Context ? Context->vcount : 0; @@ -1202,13 +1202,13 @@ int mutt_index_menu (void) #endif { if (Context && Context->path) - strncpy (buf, Context->path, sizeof (buf)); + m_strcpy(buf, sizeof(buf), Context->path); if (op != OP_SIDEBAR_OPEN) buffy_next (buf, sizeof (buf)); } if (op == OP_SIDEBAR_OPEN) { - strncpy (buf, NONULL(sidebar_get_current ()), sizeof (buf)); + m_strcpy(buf, sizeof(buf), sidebar_get_current()); } else if (mutt_enter_fname (cp, buf, sizeof (buf), &menu->redraw, 1) == -1) { if (menu->menu == MENU_PAGER) {