diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-06-18 23:55:25 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-06-18 23:55:25 +0000 |
commit | 10b33bd8f4a9d9d5ff947d4f60ce2eb9bea28294 (patch) | |
tree | 8c853f40c5e6b1211807a072869ec9f88a13bb0c /usr.bin | |
parent | 309de109ad00f5b11e5e903b7c95a448d7262cf3 (diff) |
Use xsnprintf.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/format.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index 3dc3e3dc949..3daf2bfa6bb 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.73 2015/06/15 10:58:01 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.74 2015/06/18 23:55:24 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicm@users.sourceforge.net> @@ -338,7 +338,7 @@ format_find(struct format_tree *ft, const char *key) case OPTIONS_STRING: return (o->str); case OPTIONS_NUMBER: - snprintf(s, sizeof s, "%lld", o->num); + xsnprintf(s, sizeof s, "%lld", o->num); return (s); case OPTIONS_STYLE: return (style_tostring(&o->style)); @@ -679,7 +679,7 @@ format_defaults_session(struct format_tree *ft, struct session *s) RB_FOREACH (wl, winlinks, &s->windows) { if ((wl->flags & WINLINK_ALERTFLAGS) == 0) continue; - snprintf(tmp, sizeof tmp, "%u", wl->idx); + xsnprintf(tmp, sizeof tmp, "%u", wl->idx); if (*alerts != '\0') strlcat(alerts, ",", sizeof alerts); |