diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-03-13 21:47:55 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-03-13 21:47:55 +0000 |
commit | 963a2cec51ca4689322c6ba5186b4a0472cbd334 (patch) | |
tree | 8a2c64585ce473c4df745cc6f6c4a83804d2e034 | |
parent | 835df7d30f895e4ce18cdc7d870461d07db06a07 (diff) |
Make this compile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/manager.c b/main/manager.c index 84ec2cc81..7633b6e3f 100644 --- a/main/manager.c +++ b/main/manager.c @@ -2634,14 +2634,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); |