aboutsummaryrefslogtreecommitdiff
path: root/cmd-join-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2011-01-23 15:49:32 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2011-01-23 15:49:32 +0000
commit5cbdd84686982d272383567be481f3e3c2331c02 (patch)
tree5a0a5cfbe7c319e4564110defa255e082fe02518 /cmd-join-pane.c
parent2be75a0129edc2d3a9586551d2253e394e2ef77e (diff)
downloadrtmux-5cbdd84686982d272383567be481f3e3c2331c02.tar.gz
rtmux-5cbdd84686982d272383567be481f3e3c2331c02.tar.bz2
rtmux-5cbdd84686982d272383567be481f3e3c2331c02.zip
While here, maximum percentage is 100 not INT_MAX. Oops.
Diffstat (limited to 'cmd-join-pane.c')
-rw-r--r--cmd-join-pane.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-join-pane.c b/cmd-join-pane.c
index 45abcfc2..7d24e3f5 100644
--- a/cmd-join-pane.c
+++ b/cmd-join-pane.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-join-pane.c,v 1.7 2011-01-23 15:47:31 nicm Exp $ */
+/* $Id: cmd-join-pane.c,v 1.8 2011-01-23 15:49:32 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -96,7 +96,7 @@ cmd_join_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
return (-1);
}
} else if (args_has(args, 'p')) {
- percentage = args_strtonum(args, 'p', 0, INT_MAX, &cause);
+ percentage = args_strtonum(args, 'p', 0, 100, &cause);
if (cause != NULL) {
ctx->error(ctx, "percentage %s", cause);
xfree(cause);