diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-23 21:54:48 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-23 21:54:48 +0000 |
commit | e704d6aee2b9e8864589d1960ac15726bb0cd35c (patch) | |
tree | be4a1d78a3f9f58ee244dd407d8d1be1032f5506 /status.c | |
parent | 14d7cf3878360dd47ec3e22cdf4e3d731797c9de (diff) | |
download | rtmux-e704d6aee2b9e8864589d1960ac15726bb0cd35c.tar.gz rtmux-e704d6aee2b9e8864589d1960ac15726bb0cd35c.tar.bz2 rtmux-e704d6aee2b9e8864589d1960ac15726bb0cd35c.zip |
IRIX fixes, sort of partly work.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.39 2008-06-23 16:58:49 nicm Exp $ */ +/* $Id: status.c,v 1.40 2008-06-23 21:54:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -255,7 +255,18 @@ off: size_t status_width(struct winlink *wl) { +#ifndef BROKEN_VSNPRINTF return (xsnprintf(NULL, 0, "%d:%s ", wl->idx, wl->window->name)); +#else + char *s; + size_t n; + + xasprintf(&s, "%d:%s ", wl->idx, wl->window->name); + n = strlen(s); + xfree(s); + + return (n); +#endif } char * |