File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 14
14
#include < util/tempfile.h>
15
15
#include < util/unicode.h>
16
16
17
- #include < cstring>
18
17
#include < fstream>
19
18
20
19
#if defined(__linux__) || \
@@ -120,19 +119,19 @@ static void error_parse_line(
120
119
121
120
while (*tptr!=0 )
122
121
{
123
- if (strncmp (tptr, " line " , 6 )== 0 && state!= 4 )
122
+ if (has_prefix (tptr, " line " ) && state != 4 )
124
123
{
125
124
state=1 ;
126
125
tptr+=6 ;
127
126
continue ;
128
127
}
129
- else if (strncmp (tptr, " column " , 8 )== 0 && state!= 4 )
128
+ else if (has_prefix (tptr, " column " ) && state != 4 )
130
129
{
131
130
state=2 ;
132
131
tptr+=8 ;
133
132
continue ;
134
133
}
135
- else if (strncmp (tptr, " function " , 10 )== 0 && state!= 4 )
134
+ else if (has_prefix (tptr, " function " ) && state != 4 )
136
135
{
137
136
state=3 ;
138
137
tptr+=10 ;
You can’t perform that action at this time.
0 commit comments