diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-24 09:32:47 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-24 09:32:47 -0500 |
| commit | 3f3169a2e6d9d710135ea54100b3517fae59290c (patch) | |
| tree | f4ff6b26113a4e8c2d6e1c479b1b5c61ce0a4936 /ospfd/ospf_main.c | |
| parent | 8ba835eb69d897d67a46ede418c81387bd1cc55b (diff) | |
| parent | e760cc82e7147fcfd09dad678427962f45ddabb4 (diff) | |
Merge remote-tracking branch 'origin/stable/2.0'
Diffstat (limited to 'ospfd/ospf_main.c')
| -rw-r--r-- | ospfd/ospf_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c index 845d96032b..edb1ca470e 100644 --- a/ospfd/ospf_main.c +++ b/ospfd/ospf_main.c @@ -383,7 +383,7 @@ main (int argc, char **argv) pid_file[0] = '\0'; snprintf(pidfile_temp, sizeof(pidfile_temp), "%s/ospfd-%d.pid", pid_file, instance ); - strncpy(pid_file, pidfile_temp, sizeof(pid_file)); + strlcpy(pid_file, pidfile_temp, sizeof(pid_file)); } /* Process id file create. */ pid_output (pid_file); @@ -407,7 +407,7 @@ main (int argc, char **argv) } else { - strcpy(vty_path, vty_sock_path); + strlcpy(vty_path, vty_sock_path, sizeof(vty_path)); } vty_serv_sock (vty_addr, vty_port, vty_path); |
