]> Cypherpunks repositories - gostls13.git/commitdiff
make %Z escape "
authorRuss Cox <rsc@golang.org>
Thu, 30 Oct 2008 22:35:56 +0000 (15:35 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 30 Oct 2008 22:35:56 +0000 (15:35 -0700)
R=ken
OCL=18180
CL=18180

src/cmd/gc/subr.c

index 24e894d897dc3d557fd79d4387d9b2880fcf1a65..c68938658837d0db10fabe0951666f2886f582f6 100644 (file)
@@ -1360,6 +1360,10 @@ loop:
                *p++ = '\\';
                *p++ = 'n';
                break;
+       case '\"':
+               *p++ = '\\';
+               *p++ = c;
+               break;
        }
        goto loop;