[svn-commits] russell: trunk r108508 - /trunk/apps/app_voicemail.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Mar 13 15:35:29 CDT 2008


Author: russell
Date: Thu Mar 13 15:35:28 2008
New Revision: 108508

URL: http://svn.digium.com/view/asterisk?view=rev&rev=108508
Log:
Fix a place where configuration values could cause an overflow of a buffer.

Modified:
    trunk/apps/app_voicemail.c

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=108508&r1=108507&r2=108508
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Mar 13 15:35:28 2008
@@ -5013,7 +5013,7 @@
 	if (box == NEW_FOLDER || box == OLD_FOLDER)
 		snprintf(spec, len, "%s%s", tmp, use_folder? imapfolder: "INBOX");
 	else if (box == GREETINGS_FOLDER)
-		sprintf(spec, "%s%s", tmp, greetingfolder);
+		snprintf(spec, len, "%s%s", tmp, greetingfolder);
 	else
 		snprintf(spec, len, "%s%s%c%s", tmp, imapfolder, delimiter, mbox(box));
 }




More information about the svn-commits mailing list