aboutsummaryrefslogtreecommitdiffstats
path: root/aligned_wmemdup.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-29 21:25:44 +0100
committerMattias Andrée <maandree@kth.se>2018-11-29 21:25:44 +0100
commita2fc726a6225ceb94dba367cf5acfe597ce11d74 (patch)
tree7e6f705a9160b9bdad8f32463284009085dc7254 /aligned_wmemdup.c
parentm (diff)
downloadlibsimple-a2fc726a6225ceb94dba367cf5acfe597ce11d74.tar.gz
libsimple-a2fc726a6225ceb94dba367cf5acfe597ce11d74.tar.bz2
libsimple-a2fc726a6225ceb94dba367cf5acfe597ce11d74.tar.xz
A bunch of stuff
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--aligned_wmemdup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aligned_wmemdup.c b/aligned_wmemdup.c
index bda654d..c92e17f 100644
--- a/aligned_wmemdup.c
+++ b/aligned_wmemdup.c
@@ -10,7 +10,7 @@ libsimple_aligned_wmemdup(const wchar_t *s, size_t alignment, size_t n)
void *ret;
if (LIBSIMPLE_UMUL_OVERFLOW_NONZERO(n, sizeof(wchar_t), &size, SIZE_MAX)) {
errno = ENOMEM;
- enprintf(status, "wcsdup:");
+ return NULL;
}
size = size + (alignment - size % alignment) % alignment;
ret = aligned_alloc(alignment, size ? size : alignment);