[asterisk-commits] russell: branch 1.4 r85543 - /branches/1.4/main/utils.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 15 07:48:11 CDT 2007
Author: russell
Date: Mon Oct 15 07:48:10 2007
New Revision: 85543
URL: http://svn.digium.com/view/asterisk?view=rev&rev=85543
Log:
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:
branches/1.4/main/utils.c
Modified: branches/1.4/main/utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/utils.c?view=diff&rev=85543&r1=85542&r2=85543
==============================================================================
--- branches/1.4/main/utils.c (original)
+++ branches/1.4/main/utils.c Mon Oct 15 07:48:10 2007
@@ -347,6 +347,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