[asterisk-commits] crichter: branch 1.4 r84345 - /branches/1.4/channels/chan_misdn.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 2 04:48:12 CDT 2007


Author: crichter
Date: Tue Oct  2 04:48:09 2007
New Revision: 84345

URL: http://svn.digium.com/view/asterisk?view=rev&rev=84345
Log:
terminate USERUSER String with 0

Modified:
    branches/1.4/channels/chan_misdn.c

Modified: branches/1.4/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_misdn.c?view=diff&rev=84345&r1=84344&r2=84345
==============================================================================
--- branches/1.4/channels/chan_misdn.c (original)
+++ branches/1.4/channels/chan_misdn.c Tue Oct  2 04:48:09 2007
@@ -3828,7 +3828,8 @@
 		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);
 	}
 




More information about the asterisk-commits mailing list