mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
Wrong size.
This commit is contained in:
parent
5c54e0b7fd
commit
4add09eab7
4
window.c
4
window.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: window.c,v 1.18 2007-10-03 23:32:26 nicm Exp $ */
|
/* $Id: window.c,v 1.19 2007-10-04 20:33:16 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -108,7 +108,7 @@ window_create(
|
|||||||
if (name == NULL) {
|
if (name == NULL) {
|
||||||
/* XXX */
|
/* XXX */
|
||||||
if (strncmp(cmd, "exec ", (sizeof "exec ") - 1) == 0)
|
if (strncmp(cmd, "exec ", (sizeof "exec ") - 1) == 0)
|
||||||
copy = xstrdup(cmd + sizeof "exec ");
|
copy = xstrdup(cmd + (sizeof "exec ") - 1);
|
||||||
else
|
else
|
||||||
copy = xstrdup(cmd);
|
copy = xstrdup(cmd);
|
||||||
if ((ptr = strchr(copy, ' ')) != NULL) {
|
if ((ptr = strchr(copy, ' ')) != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user