Fixed problem in gen_str.c: back-slash escape

This commit is contained in:
ceriel 1991-09-25 10:28:06 +00:00
parent e0ecfba967
commit e61bbc89f3

View File

@ -13,7 +13,7 @@ int n;
while (n--)
{
c= *s++;
if (isprint(c) && c != '"')
if (isprint(c) && c != '"' && c != '\\')
fprint(codefile, "%c", c);
else
fprint(codefile, "\\%03o", c);