diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-03-05 19:29:49 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-03-05 19:29:49 +0000 | 
| commit | b19abe1131daa38d1d0e31c4793925bb89f11c07 (patch) | |
| tree | b4754dd35436aa6e490231cac89f43357d5d27a7 /nhrpd/vici.c | |
| parent | 1ac29269cdfee4ed07c0a165329233eecfefe465 (diff) | |
Revert "nhrpd: strncpy -> strlcpy"
This reverts commit eb266ecb847b70bcf9901da5ed59a39d3e07fd8f.
Diffstat (limited to 'nhrpd/vici.c')
| -rw-r--r-- | nhrpd/vici.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/vici.c b/nhrpd/vici.c index fab99588c8..3de4609a2b 100644 --- a/nhrpd/vici.c +++ b/nhrpd/vici.c @@ -550,7 +550,7 @@ int sock_open_unix(const char *path)  	memset(&addr, 0, sizeof(struct sockaddr_un));  	addr.sun_family = AF_UNIX; -	strlcpy(addr.sun_path, path, sizeof(addr.sun_path)); +	strncpy(addr.sun_path, path, sizeof(addr.sun_path) - 1);  	ret = connect(fd, (struct sockaddr *)&addr,  		      sizeof(addr.sun_family) + strlen(addr.sun_path));  | 
