mirror of
https://github.com/tmux/tmux.git
synced 2024-11-19 10:58:51 +00:00
While here, maximum percentage is 100 not INT_MAX. Oops.
This commit is contained in:
parent
2be75a0129
commit
5cbdd84686
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user