diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-04 20:33:16 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-04 20:33:16 +0000 |
commit | 4add09eab7c263ea57e5940c350c780e883813b9 (patch) | |
tree | 727620d24c78e99b720372e0b4159101067abd31 /window.c | |
parent | 5c54e0b7fd2c4430219b01b059fb694d363a657d (diff) |
Wrong size.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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> @@ -108,7 +108,7 @@ window_create( if (name == NULL) { /* XXX */ if (strncmp(cmd, "exec ", (sizeof "exec ") - 1) == 0) - copy = xstrdup(cmd + sizeof "exec "); + copy = xstrdup(cmd + (sizeof "exec ") - 1); else copy = xstrdup(cmd); if ((ptr = strchr(copy, ' ')) != NULL) { |