diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/comp_sql.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/comp_sql.c b/scripts/comp_sql.c index 328dab0cf13..53359d384c1 100644 --- a/scripts/comp_sql.c +++ b/scripts/comp_sql.c @@ -106,6 +106,15 @@ int main(int argc, char *argv[]) curr++; } } + if (*(curr-1) != '\n') + { + /* + Some compilers have a max string length, + insert a newline at every 512th char in long + strings + */ + fprintf(out, "\"\n\""); + } } fprintf(out, "\\\n\"};\n"); |