From cb529b713f4882ac65a074ae8d87faa41d19168e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 11 May 2018 23:40:58 +0200 Subject: checksrc: make sure sizeof() is used *with* parentheses ... and unify the source code to adhere. Closes #2563 --- tests/libtest/lib552.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/libtest/lib552.c') diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c index 83797f3c2..7a960417d 100644 --- a/tests/libtest/lib552.c +++ b/tests/libtest/lib552.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -185,7 +185,7 @@ int test(char *URL) /* setup repeated data string */ for(i = 0; i < sizeof(databuf); ++i) - databuf[i] = fill[i % sizeof fill]; + databuf[i] = fill[i % sizeof(fill)]; /* Post */ test_setopt(curl, CURLOPT_POST, 1L); -- cgit v1.2.3