svn commit: r265845 - head/lib/libc/gen
Konstantin Belousov
kib at FreeBSD.org
Sat May 10 18:59:10 UTC 2014
Author: kib
Date: Sat May 10 18:59:09 2014
New Revision: 265845
URL: http://svnweb.freebsd.org/changeset/base/265845
Log:
Style.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Modified:
head/lib/libc/gen/sem_new.c
Modified: head/lib/libc/gen/sem_new.c
==============================================================================
--- head/lib/libc/gen/sem_new.c Sat May 10 17:42:21 2014 (r265844)
+++ head/lib/libc/gen/sem_new.c Sat May 10 18:59:09 2014 (r265845)
@@ -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
More information about the svn-src-all
mailing list