summaryrefslogtreecommitdiff
path: root/gl/tests/test-vasnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/tests/test-vasnprintf.c')
-rw-r--r--gl/tests/test-vasnprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gl/tests/test-vasnprintf.c b/gl/tests/test-vasnprintf.c
index f29b05aeb5..4cce0a947a 100644
--- a/gl/tests/test-vasnprintf.c
+++ b/gl/tests/test-vasnprintf.c
@@ -55,7 +55,7 @@ test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...))
ASSERT (length == 5);
if (size < 6)
ASSERT (result != buf);
- ASSERT (memcmp (buf + size, "DEADBEEF" + size, 8 - size) == 0);
+ ASSERT (memcmp (buf + size, &"DEADBEEF"[size], 8 - size) == 0);
if (result != buf)
free (result);
}