diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2012-10-31 19:11:19 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2012-10-31 19:11:19 +0000 |
commit | 86bb504639d4b37cc9a33e8150d393ddc07fee00 (patch) | |
tree | 4a89622fc7dbeaf91449a0a70f7d62fa1efadfd2 /usr.bin/tmux/cmd-set-environment.c | |
parent | 4d65796a7b964fc8a9a154888122da9abda331c4 (diff) |
fix an off-by-one
ok nicm@
Diffstat (limited to 'usr.bin/tmux/cmd-set-environment.c')
-rw-r--r-- | usr.bin/tmux/cmd-set-environment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-set-environment.c b/usr.bin/tmux/cmd-set-environment.c index 7cd1a06a624..3ed853036f5 100644 --- a/usr.bin/tmux/cmd-set-environment.c +++ b/usr.bin/tmux/cmd-set-environment.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-environment.c,v 1.6 2012/07/11 07:10:15 nicm Exp $ */ +/* $OpenBSD: cmd-set-environment.c,v 1.7 2012/10/31 19:11:18 okan Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -57,7 +57,7 @@ cmd_set_environment_exec(struct cmd *self, struct cmd_ctx *ctx) return (CMD_RETURN_ERROR); } - if (args->argc < 1) + if (args->argc < 2) value = NULL; else value = args->argv[1]; |