mirror of
https://github.com/MariaDB/server.git
synced 2025-07-02 14:22:51 +03:00
mysql_upgrade portability fixes
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user