mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
only generate maximum 509 characters in each string
This commit is contained in:
parent
b4f70aa2c8
commit
8ccd8b6dbc
@ -75,18 +75,18 @@ for(@out) {
|
|||||||
|
|
||||||
$new = $_;
|
$new = $_;
|
||||||
|
|
||||||
$outsize += length($new);
|
$outsize += length($new)+1; # one for the newline
|
||||||
|
|
||||||
$new =~ s/\\/\\\\/g;
|
$new =~ s/\\/\\\\/g;
|
||||||
$new =~ s/\"/\\\"/g;
|
$new =~ s/\"/\\\"/g;
|
||||||
|
|
||||||
printf("\"%s\\n\"\n", $new);
|
# gcc 2.96 claims ISO C89 only is required to support 509 letter strings
|
||||||
|
if($outsize > 500) {
|
||||||
if($outsize > 10000) {
|
|
||||||
# terminate and make another puts() call here
|
# terminate and make another puts() call here
|
||||||
print ");\n puts(\n";
|
print ");\n puts(\n";
|
||||||
$outsize=0;
|
$outsize=length($new)+1;
|
||||||
}
|
}
|
||||||
|
printf("\"%s\\n\"\n", $new);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user