terminate USERUSER String with 0

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Christian Richter 18 years ago
parent cf8f092d98
commit e6b3384b48

@ -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);
}

Loading…
Cancel
Save