diff options
author | Jason Evans <jasone@FreeBSD.org> | 2006-01-12 18:09:25 +0000 |
---|---|---|
committer | Jason Evans <jasone@FreeBSD.org> | 2006-01-12 18:09:25 +0000 |
commit | 352219015d3c772c1f6189c5f9168aaa312c1281 (patch) | |
tree | ee0b3fa63999f8210747ca1cd47b23d58fc5be10 /lib/libc/stdlib/malloc.c | |
parent | 7a62fb46920e2ca5b5f5149aeb2786b02c23de81 (diff) |
Notes
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index 65374ea8b609..d279db6f8323 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -1161,11 +1161,11 @@ posix_memalign(void **memptr, size_t alignment, size_t size) return (EINVAL); /* - * (size & alignment) is enough to assure the requested alignment, since + * (size | alignment) is enough to assure the requested alignment, since * the allocator always allocates power-of-two blocks. */ err = errno; /* Protect errno against changes in pubrealloc(). */ - result = pubrealloc(NULL, (size & alignment), " in posix_memalign()"); + result = pubrealloc(NULL, (size | alignment), " in posix_memalign()"); errno = err; if (result == NULL) |