mirror of
https://github.com/openbsd/src.git
synced 2025-01-03 06:45:37 -08:00
remove redundant string termination; report from nimadeus@pandora.be
This commit is contained in:
parent
27682d8baa
commit
b29dff6cfc
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: syslogc.c,v 1.2 2004/01/05 02:21:06 deraadt Exp $ */
|
||||
/* $OpenBSD: syslogc.c,v 1.3 2004/01/12 21:18:39 djm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Damien Miller
|
||||
@ -102,7 +102,6 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
strlcpy(ctl.sun_path, ctlsock_path, sizeof(ctl.sun_path));
|
||||
ctl.sun_path[sizeof(ctl.sun_path) - 1] = '\0';
|
||||
ctl.sun_family = AF_UNIX;
|
||||
|
||||
if ((ctlsock = socket(PF_UNIX, SOCK_STREAM, 0)) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user