Commit 550ba5b4 authored by Alexandre Julliard's avatar Alexandre Julliard

Avoid crashing on invalid lines during config file conversion.

parent f6c7222f
......@@ -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" );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment