mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
[fs_cli] Coverity 1468564 Buffer not null terminated
This commit is contained in:
parent
8831d8bf4e
commit
86c0996fa8
@ -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