diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-19 19:27:50 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-19 19:27:50 +0000 |
commit | 78f8bad0493eee2d163fce6ccd2c2de7db682821 (patch) | |
tree | b06d3f7f809f7c961502200afc1b12399ea24043 /apps | |
parent | 9fc8ecd73b3c9c4c779987c606f7ea568b23037d (diff) |
len already contains the position we want to examine, if we move one left again we'll actually probably be looking at a digit.
(issue #12030)
Reported by: alligosh
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103820 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_authenticate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c index 429971c36..48574a477 100644 --- a/apps/app_authenticate.c +++ b/apps/app_authenticate.c @@ -159,8 +159,8 @@ static int auth_exec(struct ast_channel *chan, void *data) continue; len = strlen(buf) - 1; - if (buf[len - 1] == '\n') - buf[len - 1] = '\0'; + if (buf[len] == '\n') + buf[len] = '\0'; if (ast_test_flag(&flags, OPT_MULTIPLE)) { md5secret = buf; |