Fixed problem in gen_str.c: back-slash escape

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

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);