From 9b6224b70f404bd85fe19cd23a231562250f36d0 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 10 May 2014 18:59:09 +0000 Subject: [PATCH] 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 9a2ab2716df..f1960066d0a 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