diff options
Diffstat (limited to 'gnulib-tests/test-snprintf.c')
-rw-r--r-- | gnulib-tests/test-snprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnulib-tests/test-snprintf.c b/gnulib-tests/test-snprintf.c index 80573576..38d9935c 100644 --- a/gnulib-tests/test-snprintf.c +++ b/gnulib-tests/test-snprintf.c @@ -1,5 +1,5 @@ /* Test of snprintf() function. - Copyright (C) 2007-2013 Free Software Foundation, Inc. + Copyright (C) 2007-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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 { |