summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2014-05-10 18:59:09 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2014-05-10 18:59:09 +0000
commit9b6224b70f404bd85fe19cd23a231562250f36d0 (patch)
tree65e49c0574f654cf2f6beb784e79c2653b53fb43
parent6e76445cf757a6f21c6c060d5773a7a64f447c9b (diff)
Notes
-rw-r--r--lib/libc/gen/sem_new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/sem_new.c b/lib/libc/gen/sem_new.c
index 9a2ab2716dfc..f1960066d0a5 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