Avoid crashing on invalid lines during config file conversion.
This commit is contained in:
parent
f6c7222fce
commit
550ba5b47a
|
@ -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" );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue