diff options
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |