diff options
author | kib <kib@FreeBSD.org> | 2014-05-10 18:59:09 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-05-10 18:59:09 +0000 |
commit | 31381c5290017ff21ab042b1a004d0d6aa9355e0 (patch) | |
tree | 65e49c0574f654cf2f6beb784e79c2653b53fb43 /lib/libc | |
parent | 56ecdb9ab8305061131a36935ec6bbaf949439ba (diff) | |
download | FreeBSD-src-31381c5290017ff21ab042b1a004d0d6aa9355e0.zip FreeBSD-src-31381c5290017ff21ab042b1a004d0d6aa9355e0.tar.gz |
Style.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/sem_new.c | 4 |
1 files 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 |