summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/stdlib/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c
index 17ba5fb127..cad8e5d6a1 100644
--- a/src/lib/libc/stdlib/malloc.c
+++ b/src/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: malloc.c,v 1.296 2024/03/30 07:50:39 miod Exp $ */ 1/* $OpenBSD: malloc.c,v 1.297 2024/09/20 02:00:46 jsg Exp $ */
2/* 2/*
3 * Copyright (c) 2008, 2010, 2011, 2016, 2023 Otto Moerbeek <otto@drijf.net> 3 * Copyright (c) 2008, 2010, 2011, 2016, 2023 Otto Moerbeek <otto@drijf.net>
4 * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> 4 * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@@ -2350,7 +2350,7 @@ aligned_alloc(size_t alignment, size_t size)
2350 if (((alignment - 1) & alignment) != 0 || alignment == 0) { 2350 if (((alignment - 1) & alignment) != 0 || alignment == 0) {
2351 errno = EINVAL; 2351 errno = EINVAL;
2352 return NULL; 2352 return NULL;
2353 }; 2353 }
2354 /* Per spec, size should be a multiple of alignment */ 2354 /* Per spec, size should be a multiple of alignment */
2355 if ((size & (alignment - 1)) != 0) { 2355 if ((size & (alignment - 1)) != 0) {
2356 errno = EINVAL; 2356 errno = EINVAL;