=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/names.c,v retrieving revision 1.44 retrieving revision 1.45 diff -c -r1.44 -r1.45 *** src/usr.bin/tmux/names.c 2021/03/02 11:00:38 1.44 --- src/usr.bin/tmux/names.c 2021/08/20 17:50:42 1.45 *************** *** 1,4 **** ! /* $OpenBSD: names.c,v 1.44 2021/03/02 11:00:38 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: names.c,v 1.45 2021/08/20 17:50:42 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 146,152 **** name = copy = xstrdup(in); if (*name == '"') name++; ! name[strcspn (name, "\"")] = '\0'; if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0) name = name + (sizeof "exec ") - 1; --- 146,152 ---- name = copy = xstrdup(in); if (*name == '"') name++; ! name[strcspn(name, "\"")] = '\0'; if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0) name = name + (sizeof "exec ") - 1;