From: Daniel Stenberg Date: Wed, 21 Sep 2022 07:32:12 +0000 (+0200) Subject: httpput-postfields.c: shorten string for C89 compliance X-Git-Tag: curl-7_86_0~194 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9eec75452c5bc616434dab28cdc7f46ff8263e1d;p=thirdparty%2Fcurl.git httpput-postfields.c: shorten string for C89 compliance 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 --- 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