We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7de29 commit 08748b9Copy full SHA for 08748b9
src/interfaces/ecpg/preproc/output.c
@@ -95,7 +95,7 @@ hashline_number(void)
95
#endif
96
)
97
{
98
- /* "* 2" here is for escaping \s below */
+ /* "* 2" here is for escaping '\' and '"' below */
99
char *line = mm_alloc(strlen("\n#line %d \"%s\"\n") + sizeof(int) * CHAR_BIT * 10 / 3 + strlen(input_filename) * 2);
100
char *src,
101
*dest;
@@ -105,7 +105,7 @@ hashline_number(void)
105
dest = line + strlen(line);
106
while (*src)
107
108
- if (*src == '\\')
+ if (*src == '\\' || *src == '"')
109
*dest++ = '\\';
110
*dest++ = *src++;
111
}
0 commit comments