mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-13 13:40:44 +00:00
[fs_cli] Coverity 1468564 Buffer not null terminated
This commit is contained in:
parent
bc2801e340
commit
6f0a76ef7e
@ -1521,7 +1521,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
strncpy(internal_profile.host, "127.0.0.1", sizeof(internal_profile.host));
|
||||
strncpy(internal_profile.pass, "ClueCon", sizeof(internal_profile.pass));
|
||||
strncpy(internal_profile.name, hostname, sizeof(internal_profile.name));
|
||||
snprintf(internal_profile.name, sizeof(internal_profile.name), "%s", hostname);
|
||||
internal_profile.port = 8021;
|
||||
set_fn_keys(&internal_profile);
|
||||
esl_set_string(internal_profile.prompt_color, prompt_color);
|
||||
|
Loading…
x
Reference in New Issue
Block a user