Date: Sat, 10 May 2014 18:59:10 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265845 - head/lib/libc/gen Message-ID: <201405101859.s4AIxAor079383@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405101859.s4AIxAor079383>