From 9eec75452c5bc616434dab28cdc7f46ff8263e1d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 21 Sep 2022 09:32:12 +0200 Subject: [PATCH] httpput-postfields.c: shorten string for C89 compliance MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit httpput-postfields.c:41:3: error: string length ‘522’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings] 41 | "this chapter."; | ^~~~~~~~~~~~~~~ Closes #9555 --- docs/examples/httpput-postfields.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/examples/httpput-postfields.c b/docs/examples/httpput-postfields.c index 7c85a01e57..f8a5c43a68 100644 --- a/docs/examples/httpput-postfields.c +++ b/docs/examples/httpput-postfields.c @@ -37,8 +37,10 @@ static const char olivertwist[]= "small: to wit, a workhouse; and in this workhouse was born; on a day and " "date which I need not trouble myself to repeat, inasmuch as it can be of " "no possible consequence to the reader, in this stage of the business at " - "all events; the item of mortality whose name is prefixed to the head of " - "this chapter."; + "all events; the item of mortality whose name is prefixed"; + +/* ... to the head of this chapter. String cut off to stick within the C90 + 509 byte limit. */ /* * This example shows a HTTP PUT operation that sends a fixed buffer with -- 2.47.3