aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c2
1 files changed, 1 insertions, 1 deletions
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;