summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-01-23 15:49:10 +0000
committernicm <nicm@openbsd.org>2011-01-23 15:49:10 +0000
commitda30e2a1665e7723e56dc7ace307da5543565544 (patch)
tree5897ab6af98a7df4cc370796d315d2f5290b5b0b
parentSize is -l not -s. (diff)
downloadwireguard-openbsd-da30e2a1665e7723e56dc7ace307da5543565544.tar.xz
wireguard-openbsd-da30e2a1665e7723e56dc7ace307da5543565544.zip
While here, maximum percentage is 100 not INT_MAX. Oops.
-rw-r--r--usr.bin/tmux/cmd-join-pane.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-join-pane.c b/usr.bin/tmux/cmd-join-pane.c
index ef090269efc..d9becf9a1ce 100644
--- a/usr.bin/tmux/cmd-join-pane.c
+++ b/usr.bin/tmux/cmd-join-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-join-pane.c,v 1.6 2011/01/23 15:46:49 nicm Exp $ */
+/* $OpenBSD: cmd-join-pane.c,v 1.7 2011/01/23 15:49:10 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -97,7 +97,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);