From: Daniel Stenberg Date: Fri, 9 Mar 2001 13:11:28 +0000 (+0000) Subject: only generate maximum 509 characters in each string X-Git-Tag: upstream/7.37.1~17038 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ccd8b6dbc92a6bba7944ffab1365d65b7eb63fb;p=platform%2Fupstream%2Fcurl.git only generate maximum 509 characters in each string --- diff --git a/src/mkhelp.pl b/src/mkhelp.pl index a5877d5..edc8d17 100644 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -75,18 +75,18 @@ for(@out) { $new = $_; - $outsize += length($new); + $outsize += length($new)+1; # one for the newline $new =~ s/\\/\\\\/g; $new =~ s/\"/\\\"/g; - printf("\"%s\\n\"\n", $new); - - if($outsize > 10000) { + # gcc 2.96 claims ISO C89 only is required to support 509 letter strings + if($outsize > 500) { # terminate and make another puts() call here print ");\n puts(\n"; - $outsize=0; + $outsize=length($new)+1; } + printf("\"%s\\n\"\n", $new); }