Skip to content
Snippets Groups Projects
Commit 550ba5b4 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Avoid crashing on invalid lines during config file conversion.

parent f6c7222f
No related branches found
No related tags found
No related merge requests found
......@@ -332,11 +332,14 @@ static int convert_config( FILE *in, const char *output_name )
p++;
}
fprintf( out, "\" = \"" );
while (*p2)
if (p2)
{
if (*p2 == '\\') fputc( '\\', out );
fputc( *p2, out );
p2++;
while (*p2)
{
if (*p2 == '\\') fputc( '\\', out );
fputc( *p2, out );
p2++;
}
}
fprintf( out, "\"\n" );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment