1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-02 14:22:51 +03:00

mysql_upgrade win fixes

This commit is contained in:
msvensson@pilot.blaudden
2007-04-19 17:00:29 +02:00
parent 50669c43ac
commit 41c41448b9
3 changed files with 16 additions and 10 deletions

View File

@ -74,7 +74,7 @@ int main(int argc, char *argv[])
while(*end && *end != '.')
end++;
*end= 0;
fprintf(out, "const char* %s={\"\\\n", infile_name);
fprintf(out, "const char* %s={\n\"", infile_name);
while (fgets(buff, sizeof(buff), in))
{
@ -87,7 +87,7 @@ int main(int argc, char *argv[])
Reached end of line, add escaped newline, escaped
backslash and a newline to outfile
*/
fprintf(out, "\\n\\\n");
fprintf(out, "\\n \"\n\"");
curr++;
}
else if (*curr == '\r')