summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-set-environment.c
diff options
context:
space:
mode:
authorokan <okan@openbsd.org>2012-10-31 19:11:18 +0000
committerokan <okan@openbsd.org>2012-10-31 19:11:18 +0000
commitd61f8b67ea116cc6c51c871691612386e1e871f7 (patch)
tree7298e45016d5dd372950794fecf43a36ac28ea37 /usr.bin/tmux/cmd-set-environment.c
parentchris@ spotted a '2038' where a '2048' was meant and pointed out (diff)
downloadwireguard-openbsd-d61f8b67ea116cc6c51c871691612386e1e871f7.tar.xz
wireguard-openbsd-d61f8b67ea116cc6c51c871691612386e1e871f7.zip
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.c4
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];