projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parse-datetime, tests: don't use "string" + int
[gnulib.git]
/
tests
/
test-snprintf.c
diff --git
a/tests/test-snprintf.c
b/tests/test-snprintf.c
index
8057357
..
108346e
100644
(file)
--- a/
tests/test-snprintf.c
+++ b/
tests/test-snprintf.c
@@
-52,7
+52,7
@@
main (int argc, char *argv[])
#if !CHECK_SNPRINTF_POSIX
if (size > 0)
#endif
- ASSERT (memcmp (buf + size,
"DEADBEEF" + size
, 8 - size) == 0);
+ ASSERT (memcmp (buf + size,
&"DEADBEEF"[size]
, 8 - size) == 0);
}
else
{