projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
close should not be cancellable after "failing" with EINTR
[oweals/musl.git]
/
src
/
malloc
/
posix_memalign.c
diff --git
a/src/malloc/posix_memalign.c
b/src/malloc/posix_memalign.c
index ef86260d81689391c2a7ed0dd6e1afefad9b1846..2ae928c84e3439d6782adc2882f116c2f3d4603a 100644
(file)
--- a/
src/malloc/posix_memalign.c
+++ b/
src/malloc/posix_memalign.c
@@
-11,7
+11,7
@@
int posix_memalign(void **res, size_t align, size_t len)
unsigned char *mem, *new, *end;
size_t header, footer;
- if ((align & -align) != align) return EINVAL;
+ if ((align & -align
& -sizeof(void *)
) != align) return EINVAL;
if (len > SIZE_MAX - align) return ENOMEM;
if (align <= 4*sizeof(size_t)) {