From 6c014e4283dfa344d6300584b8b300b0291bc57d Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 22 Jan 2014 01:47:53 +0100 Subject: [PATCH] test1514: Got rid of a non-const initializer C99ism --- tests/libtest/lib1514.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libtest/lib1514.c b/tests/libtest/lib1514.c index b6136efe0..ec8f8a325 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);