ncmixer

ncurses audio mixer for DJ'ing
git clone git://git.2f30.org/ncmixer
Log | Files | Refs | README | LICENSE

commit 99fc797036039867d7387d68577234e71e589783
parent 09291a56e85d20a88b0792c97d41837f22064058
Author: sin <sin@2f30.org>
Date:   Sat, 11 Jun 2016 21:22:24 +0100

Replace strlcpy() with equivalent call to snprintf()

Diffstat:
Mncmixer.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ncmixer.c b/ncmixer.c @@ -313,7 +313,7 @@ server_listen(char *name) unlink(name); memset(&sun, 0, sizeof(sun)); sun.sun_family = AF_UNIX; - strlcpy(sun.sun_path, name, sizeof(sun.sun_path)); + snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", name); len = sizeof(sun); oldumask = umask(0111); if (bind(fd, (SA *)&sun, len) == -1)