[asterisk-commits] mmichelson: trunk r108586 - /trunk/main/manager.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Mar 13 16:47:55 CDT 2008
Author: mmichelson
Date: Thu Mar 13 16:47:55 2008
New Revision: 108586
URL: http://svn.digium.com/view/asterisk?view=rev&rev=108586
Log:
Make this compile
Modified:
trunk/main/manager.c
Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=108586&r1=108585&r2=108586
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Thu Mar 13 16:47:55 2008
@@ -2634,14 +2634,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 asterisk-commits
mailing list