projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
getcwd: fix compile error in configure check
[gnulib.git]
/
tests
/
test-snprintf-posix.h
diff --git
a/tests/test-snprintf-posix.h
b/tests/test-snprintf-posix.h
index
72b8c4a
..
f71b3f7
100644
(file)
--- a/
tests/test-snprintf-posix.h
+++ b/
tests/test-snprintf-posix.h
@@
-96,7
+96,7
@@
test_function (int (*my_snprintf) (char *, size_t, const char *, ...))
ASSERT (memcmp (buf, "12345", size - 1) == 0);
ASSERT (buf[size - 1] == '\0');
}
- ASSERT (memcmp (buf + size,
"DEADBEEF" + size
, 8 - size) == 0);
+ ASSERT (memcmp (buf + size,
&"DEADBEEF"[size]
, 8 - size) == 0);
}
else
{