From 4add09eab7c263ea57e5940c350c780e883813b9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 4 Oct 2007 20:33:16 +0000 Subject: [PATCH] Wrong size. --- window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window.c b/window.c index 18fbd887..ec7d06a6 100644 --- a/window.c +++ b/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 @@ -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) {