Re: patch for fatal xrealloc in set-buffer

2014-03-24 Thread Nicholas Marriott
good spot, applied thanks On Sun, Mar 23, 2014 at 06:38:45PM -0500, J Raynor wrote: > The following will cause a fatal error in recent tmux code: > > setb "" > > > The empty string leads to an xrealloc in cmd-set-buffer.c with a size > of 0, which is fatal. I've attached a patch which fixes t

patch for fatal xrealloc in set-buffer

2014-03-23 Thread J Raynor
The following will cause a fatal error in recent tmux code: setb "" The empty string leads to an xrealloc in cmd-set-buffer.c with a size of 0, which is fatal. I've attached a patch which fixes this. diff --git a/cmd-set-buffer.c b/cmd-set-buffer.c index 0e754bb..e7f9b95 100644 --- a/cmd-set-bu