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,7 +14,6 @@ Author: Daniel Kroening, kroening@kroening.com
1414#include <util/tempfile.h>
1515#include <util/unicode.h>
1616
17- #include <cstring>
1817#include <fstream>
1918
2019#if defined(__linux__) || \
@@ -120,19 +119,19 @@ static void error_parse_line(
120119
121120 while(*tptr!=0)
122121 {
123- if(strncmp (tptr, " line ", 6)==0 && state!= 4)
122+ if(has_prefix (tptr, " line ") && state != 4)
124123 {
125124 state=1;
126125 tptr+=6;
127126 continue;
128127 }
129- else if(strncmp (tptr, " column ", 8)==0 && state!= 4)
128+ else if(has_prefix (tptr, " column ") && state != 4)
130129 {
131130 state=2;
132131 tptr+=8;
133132 continue;
134133 }
135- else if(strncmp (tptr, " function ", 10)==0 && state!= 4)
134+ else if(has_prefix (tptr, " function ") && state != 4)
136135 {
137136 state=3;
138137 tptr+=10;
You can’t perform that action at this time.
0 commit comments