]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix dialing in skinny that was broken in some cases.
authorJason Parker <jparker@digium.com>
Thu, 12 Jul 2007 16:16:59 +0000 (16:16 +0000)
committerJason Parker <jparker@digium.com>
Thu, 12 Jul 2007 16:16:59 +0000 (16:16 +0000)
Issue 10136, fix provided by DEA.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74839 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 19e23185ec1c11fad85e87783138b3f5671c70fd..78031244db85e6f343e0946765a7caf2a92476e2 100644 (file)
@@ -4099,7 +4099,7 @@ static int handle_message(struct skinny_req *req, struct skinnysession *s)
                        len = strlen(d->exten);
                        if (len < sizeof(d->exten) - 1) {
                                d->exten[len] = dgt;
-                               d->exten[len] = '\0';
+                               d->exten[len+1] = '\0';
                        } else {
                                ast_log(LOG_WARNING, "Dropping digit with value %d because digit queue is full\n", dgt);
                        }