Skip to content
Snippets Groups Projects
Commit 8ccd8b6d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

only generate maximum 509 characters in each string

parent b4f70aa2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment