diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-13 15:36:41 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-13 15:36:41 +0000 |
commit | 48e431fd6e062c2ac3a700a32736bc9a33d83109 (patch) | |
tree | 8ed256bbad09346d0a2cf0e6e17b8cdd97f51103 | |
parent | f842f49a51c175fc2f785d994b1cc45605e17c6d (diff) |
Merged revisions 262897 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r262897 | russell | 2010-05-13 10:36:12 -0500 (Thu, 13 May 2010) | 4 lines
Fix an off by one error that causes a crash.
Thanks to Raymond Burke for pointing it out.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@262898 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_console.c b/channels/chan_console.c index 9f212ff6f..4b278412a 100644 --- a/channels/chan_console.c +++ b/channels/chan_console.c @@ -1199,7 +1199,7 @@ static char *cli_console_active(struct ast_cli_entry *e, int cmd, struct ast_cli return CLI_SUCCESS; } - if (!(pvt = find_pvt(a->argv[e->args]))) { + if (!(pvt = find_pvt(a->argv[e->args - 1]))) { ast_cli(a->fd, "Could not find a device called '%s'.\n", a->argv[e->args]); return CLI_FAILURE; } |