summaryrefslogtreecommitdiffstats
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-26 16:57:32 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-26 16:57:32 +0000
commit4a325c8f9366a1c7643d193ff2e613bbc91ce144 (patch)
treee83434607a56459a436387e06fe559a860a59768 /cmd-new-window.c
parent51482b57ae351396f2f38b507f9e248fa93c712b (diff)
unlink-window command. Also fix some u_int -> int problems.
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r--cmd-new-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index ea81734d..094d877e 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-new-window.c,v 1.10 2007-10-26 12:29:07 nicm Exp $ */
+/* $Id: cmd-new-window.c,v 1.11 2007-10-26 16:57:32 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -66,7 +66,7 @@ cmd_new_window_parse(void **ptr, int argc, char **argv, char **cause)
while ((opt = getopt(argc, argv, "di:n:")) != EOF) {
switch (opt) {
case 'i':
- data->idx = strtonum(optarg, 0, UINT_MAX, &errstr);
+ data->idx = strtonum(optarg, 0, INT_MAX, &errstr);
if (errstr != NULL) {
xasprintf(cause, "index %s", errstr);
goto error;