aResult.Append('\\');
*q++ = '\\';
void str_escape(const char * original, nsAFlatCString& aResult){    const char *p;        if (original == NULL)        return;    /* Paranoid worst case all slashes will free quickly */    p = original;    aResult.Truncate();    while (*p)    {        switch (*p)        {            case '\\':            case '\"':            case '\n':                aResult.Append('\\');                break;            default:                break;        }        aResult.Append(*p++);    }}