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


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Mark Michelson 18 years ago
parent e2d7bed99a
commit 180bdba9e5

@ -2565,14 +2565,14 @@ static int manager_modulecheck(struct mansession *s, const struct message *m)
} 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);

Loading…
Cancel
Save