From: Dan Fandrich Date: Wed, 22 Jan 2014 00:47:53 +0000 (+0100) Subject: test1514: Got rid of a non-const initializer C99ism X-Git-Tag: curl-7_35_0~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c014e4283dfa344d6300584b8b300b0291bc57d;p=thirdparty%2Fcurl.git test1514: Got rid of a non-const initializer C99ism --- diff --git a/tests/libtest/lib1514.c b/tests/libtest/lib1514.c index b6136efe09..ec8f8a3254 100644 --- a/tests/libtest/lib1514.c +++ b/tests/libtest/lib1514.c @@ -57,7 +57,7 @@ int test(char *URL) CURL *curl; CURLcode result = CURLE_OK; int res = 0; - struct WriteThis pooh = { data, strlen(data) }; + struct WriteThis pooh = { data, sizeof(data)-1 }; global_init(CURL_GLOBAL_ALL);