aboutsummaryrefslogtreecommitdiffstats
path: root/enaligned_strndup.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-12-15 14:56:23 +0100
committerMattias Andrée <maandree@kth.se>2018-12-15 14:56:23 +0100
commitd1122de6bb461e0448897869b4406300c12f259f (patch)
tree031bf1bdb887be786e5bb370c83eb52eef649ddc /enaligned_strndup.c
parentA bunch of stuff (diff)
downloadlibsimple-d1122de6bb461e0448897869b4406300c12f259f.tar.gz
libsimple-d1122de6bb461e0448897869b4406300c12f259f.tar.bz2
libsimple-d1122de6bb461e0448897869b4406300c12f259f.tar.xz
More tests and fix attributes on wcsndup
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--enaligned_strndup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/enaligned_strndup.c b/enaligned_strndup.c
index 7778cb2..6812d1c 100644
--- a/enaligned_strndup.c
+++ b/enaligned_strndup.c
@@ -8,7 +8,7 @@ libsimple_enaligned_strndup(int status, const char *s, size_t alignment, size_t
{
void *ret = aligned_strndup(s, alignment, n);
if (!ret)
- enprintf(status, "aligned_strdup:");
+ enprintf(status, "aligned_strndup:");
return ret;
}
@@ -116,14 +116,14 @@ main(void)
alloc_fail_in = 1;
assert_exit_ptr(libsimple_enaligned_strndup(44, "hello", 2, 10));
assert(exit_status == 44);
- assert_stderr("%s: aligned_strdup: %s\n", argv0, strerror(ENOMEM));
+ assert_stderr("%s: aligned_strndup: %s\n", argv0, strerror(ENOMEM));
assert(!alloc_fail_in);
libsimple_default_failure_exit = 55;
alloc_fail_in = 1;
assert_exit_ptr(libsimple_ealigned_strndup("test", 8, 10));
assert(exit_status == 55);
- assert_stderr("%s: aligned_strdup: %s\n", argv0, strerror(ENOMEM));
+ assert_stderr("%s: aligned_strndup: %s\n", argv0, strerror(ENOMEM));
assert(!alloc_fail_in);
libsimple_default_failure_exit = 1;
}