mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
[mod_snom, mod_snmp] Replace strncpy with snprintf
This commit is contained in:
1 parent
2a8804af97
commit
d127eeeecc
2 files changed
+15
-15
No files matched your search
@@ -143,7 +143,7 @@ SWITCH_STANDARD_API(snom_command_api_function)
|
||||
}
|
||||
|
||||
if (switch_inet_pton(AF_INET, argv[0], &ip)) {
|
||||
strncpy(host, argv[0], sizeof(host));
|
||||
snprintf(host, sizeof(host), "%s", argv[0]);
|
||||
} else {
|
||||
char *sql = NULL;
|
||||
char *ret = NULL;
|
||||
|
||||
Reference in new issue
Block a user