From d5ed5fb08ff83a2cc38292b3eb0addab21ce6282 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 4 Mar 2011 23:26:44 +0000 Subject: Two fixes by Micah Cowan: make mouse work properly beyond >127 on signed char architectures and properly parse $TMUX by stopping the socket path at the first comma. --- tmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index 31070f00..196edf6c 100644 --- a/tmux.c +++ b/tmux.c @@ -132,7 +132,7 @@ parseenvironment(void) if ((env = getenv("TMUX")) == NULL) return; - if (sscanf(env, "%255s,%ld,%d", path, &pid, &idx) != 3) + if (sscanf(env, "%255[^,],%ld,%d", path, &pid, &idx) != 3) return; environ_path = xstrdup(path); environ_pid = pid; -- cgit