-/* $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>
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));
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);