mirror of
https://github.com/tmux/tmux.git
synced 2024-11-07 11:48:50 +00:00
Sync OpenBSD patchset 827:
Handle a # at the end of a replacement string (such as status-left) correctly. Found by Thomas Adam.
This commit is contained in:
parent
b463d3de54
commit
3aaf5b9b1e
4
status.c
4
status.c
@ -1,4 +1,4 @@
|
||||
/* $Id: status.c,v 1.153 2011-01-03 23:52:38 tcunha Exp $ */
|
||||
/* $Id: status.c,v 1.154 2011-01-07 14:32:26 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -469,7 +469,7 @@ status_replace(struct client *c,
|
||||
break;
|
||||
ch = *iptr++;
|
||||
|
||||
if (ch != '#') {
|
||||
if (ch != '#' || *iptr == '\0') {
|
||||
*optr++ = ch;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user