mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-05 15:18:46 +00:00
fopen with "wb" to avoid mixed LF/CRLF output on windows.
This commit is contained in:
@@ -73,7 +73,7 @@ int main(int argument_count, char **arguments)
|
||||
MD_String8 info_filename = MD_PushStringF("parsed_%.*s.txt", MD_StringExpand(code_filename));
|
||||
printf("Parse Input -> Output: %.*s -> %.*s\n", MD_StringExpand(code_filename), MD_StringExpand(info_filename));
|
||||
|
||||
FILE* file = fopen((char *)info_filename.str, "w");
|
||||
FILE* file = fopen((char *)info_filename.str, "wb");
|
||||
for(MD_EachNode(node, root->first_child))
|
||||
{
|
||||
PrintNode(node, file, 0);
|
||||
|
||||
Reference in New Issue
Block a user