Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
kib 2014-05-10 18:59:09 +00:00
parent 56ecdb9ab8
commit 31381c5290

View File

@ -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