From 31381c5290017ff21ab042b1a004d0d6aa9355e0 Mon Sep 17 00:00:00 2001 From: kib Date: Sat, 10 May 2014 18:59:09 +0000 Subject: Style. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/gen/sem_new.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/sem_new.c b/lib/libc/gen/sem_new.c index 9a2ab27..f196006 100644 --- a/lib/libc/gen/sem_new.c +++ b/lib/libc/gen/sem_new.c @@ -294,13 +294,13 @@ _sem_unlink(const char *name) return -1; } name++; - strcpy(path, SEM_PREFIX); if (strlcat(path, name, sizeof(path)) >= sizeof(path)) { errno = ENAMETOOLONG; return (-1); } - return unlink(path); + + return (unlink(path)); } int -- cgit v1.1