summaryrefslogtreecommitdiffstats
path: root/browser.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-09-23 21:07:34 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-09-23 21:07:34 +0000
commit2f70a5474a48cba074baaf100a997fbd42ffe95f (patch)
tree044f692b78604f1d194704cb40978351b35299be /browser.c
parent6be24609f8fb6097a328364718d6bc9ab86070e4 (diff)
Try not to pass NULL pointers to snprintf - the Solaris version
doesn't like them. (Noted by Thomas.Parmelan@efrei.fr.)
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/browser.c b/browser.c
index f08f99ea..b51746c3 100644
--- a/browser.c
+++ b/browser.c
@@ -477,11 +477,11 @@ static void init_menu (struct browser_state *state, MUTTMENU *menu, char *title,
#ifdef USE_IMAP
if (state->imap_browse && option (OPTIMAPLSUB))
snprintf (title, titlelen, _("Subscribed [%s], File mask: %s"),
- path, Mask.pattern);
+ path, NONULL (Mask.pattern));
else
#endif
snprintf (title, titlelen, _("Directory [%s], File mask: %s"),
- path, Mask.pattern);
+ path, NONULL(Mask.pattern));
}
menu->redraw = REDRAW_FULL;
}