diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-09 13:11:28 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-09 13:11:28 +0000 |
commit | 8ccd8b6dbc92a6bba7944ffab1365d65b7eb63fb (patch) | |
tree | 7b0e77906fcbfef05f940851c827969901ae8a38 /src | |
parent | b4f70aa2c823886cfc56894a74ab06115744f4e6 (diff) |
only generate maximum 509 characters in each string
Diffstat (limited to 'src')
-rw-r--r-- | src/mkhelp.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mkhelp.pl b/src/mkhelp.pl index a5877d5af..edc8d173e 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); } |