Hi,
Currently, if I have this:
setw -g window-status-current-format '#T:#'
Or any other setting which gets run through status_replace1(), because
there's nothing after the end '#' in the string, we blindly return first of
all without NUL-terminating the output string. This results in garbage
printed to the status line.
See patch attached for fix.
-- Thomas Adam
--
"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.
Index: status.c
===================================================================
RCS file: /cvsroot/tmux/tmux/status.c,v
retrieving revision 1.152
diff -u -p -r1.152 status.c
--- status.c 30 Dec 2010 22:39:49 -0000 1.152
+++ status.c 3 Jan 2011 13:32:01 -0000
@@ -420,6 +420,8 @@ status_replace1(struct client *c,struct
*(*optr)++ = '#';
break;
}
+
+ *(*optr)++ = '\0';
return;
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users