=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.c,v retrieving revision 1.172 retrieving revision 1.173 diff -c -r1.172 -r1.173 *** src/usr.bin/tmux/tmux.c 2016/10/11 13:21:59 1.172 --- src/usr.bin/tmux/tmux.c 2016/12/09 21:39:27 1.173 *************** *** 1,4 **** ! /* $OpenBSD: tmux.c,v 1.172 2016/10/11 13:21:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tmux.c,v 1.173 2016/12/09 21:39:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 321,327 **** s = getenv("TMUX"); if (s != NULL && *s != '\0' && *s != ',') { path = xstrdup(s); ! path[strcspn (path, ",")] = '\0'; } } if (path == NULL && (path = make_label(label)) == NULL) { --- 321,327 ---- s = getenv("TMUX"); if (s != NULL && *s != '\0' && *s != ',') { path = xstrdup(s); ! path[strcspn(path, ",")] = '\0'; } } if (path == NULL && (path = make_label(label)) == NULL) {