[asterisk-commits] russell: trunk r85544 - in /trunk: ./ main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 15 07:49:31 CDT 2007


Author: russell
Date: Mon Oct 15 07:49:31 2007
New Revision: 85544

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85544
Log:
Merged revisions 85543 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r85543 | russell | 2007-10-15 07:48:10 -0500 (Mon, 15 Oct 2007) | 8 lines

Make sure that the base64 decoder returns a terminated string.

(closes issue #10979)
Reported by: ys
Patches: 
      util.c.diff uploaded by ys (license 281)
	    - small mods by me

........

Modified:
    trunk/   (props changed)
    trunk/main/utils.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/utils.c
URL: http://svn.digium.com/view/asterisk/trunk/main/utils.c?view=diff&rev=85544&r1=85543&r2=85544
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Mon Oct 15 07:49:31 2007
@@ -352,6 +352,9 @@
 			cnt++;
 		}
 	}
+	if (cnt == max)
+		dst--;
+	*dst = '\0';
 	/* Dont worry about left over bits, they're extra anyway */
 	return cnt;
 }




More information about the asterisk-commits mailing list