]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
terminate USERUSER String with 0
authorChristian Richter <christian.richter@beronet.com>
Tue, 2 Oct 2007 09:48:09 +0000 (09:48 +0000)
committerChristian Richter <christian.richter@beronet.com>
Tue, 2 Oct 2007 09:48:09 +0000 (09:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84345 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index c95e9cac5398845cf72f81e96cdda13fea65eb8e..f44ed749ef170e7b1ce076e3d078446567f9ce4b 100644 (file)
@@ -3828,7 +3828,8 @@ void export_ch(struct ast_channel *chan, struct misdn_bchannel *bc, struct chan_
                pbx_builtin_setvar_helper(chan,"MISDN_URATE",tmp);
        }
 
-       if (bc->uulen) {
+       if (bc->uulen && (bc->uulen < sizeof(bc->uu))) {
+               bc->uu[bc->uulen]=0;
                pbx_builtin_setvar_helper(chan,"MISDN_USERUSER",bc->uu);
        }