projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove redundant check in memalign
[musl]
/
src
/
temp
/
mkostemps.c
diff --git
a/src/temp/mkostemps.c
b/src/temp/mkostemps.c
index
d87d4b6
..
8cc01e3
100644
(file)
--- a/
src/temp/mkostemps.c
+++ b/
src/temp/mkostemps.c
@@
-10,7
+10,7
@@
char *__randname(char *);
int __mkostemps(char *template, int len, int flags)
{
size_t l = strlen(template);
- if (l<6 || len>l-6 ||
strn
cmp(template+l-len-6, "XXXXXX", 6)) {
+ if (l<6 || len>l-6 ||
mem
cmp(template+l-len-6, "XXXXXX", 6)) {
errno = EINVAL;
return -1;
}