diff options
-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 f7317c709..72e154f6c 100644 --- a/main/manager.c +++ b/main/manager.c @@ -2565,14 +2565,14 @@ static int manager_modulecheck(struct mansession *s, const struct message *m) } else { cut = filename + strlen(filename); } - sprintf(cut, ".so"); + snprintf(cut, sizeof(filename) - cut - 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; } - sprintf(cut, ".c"); + snprintf(cut, sizeof(filename) - cut - 1, ".c"); ast_log(LOG_DEBUG, "**** ModuleCheck .c file %s\n", filename); version = ast_file_version_find(filename); |