[svn-commits] mmichelson: branch 1.6.0 r108587 - in /branches/1.6.0: ./ main/manager.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Mar 13 16:48:39 CDT 2008


Author: mmichelson
Date: Thu Mar 13 16:48:38 2008
New Revision: 108587

URL: http://svn.digium.com/view/asterisk?view=rev&rev=108587
Log:
Merged revisions 108586 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r108586 | mmichelson | 2008-03-13 16:47:55 -0500 (Thu, 13 Mar 2008) | 3 lines

Make this compile


........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/main/manager.c

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/main/manager.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/main/manager.c?view=diff&rev=108587&r1=108586&r2=108587
==============================================================================
--- branches/1.6.0/main/manager.c (original)
+++ branches/1.6.0/main/manager.c Thu Mar 13 16:48:38 2008
@@ -2565,14 +2565,14 @@
 	} else {
 		cut = filename + strlen(filename);
 	}
-	snprintf(cut, sizeof(filename) - cut - 1, ".so");
+	snprintf(cut, (sizeof(filename) - strlen(filename)) - 1, ".so");
 	ast_log(LOG_DEBUG, "**** ModuleCheck .so file %s\n", filename);
 	res = ast_module_check(filename);
 	if (!res) {
 		astman_send_error(s, m, "Module not loaded");
 		return 0;
 	}
-	snprintf(cut, sizeof(filename) - cut - 1, ".c");
+	snprintf(cut, (sizeof(filename) - strlen(filename)) - 1, ".c");
 	ast_log(LOG_DEBUG, "**** ModuleCheck .c file %s\n", filename);
 	version = ast_file_version_find(filename);
 




More information about the svn-commits mailing list