fix: end must G; fix

This commit is contained in:
root 2024-01-06 23:43:55 +08:00
parent 772a644de0
commit b38a810265
1 changed files with 1 additions and 6 deletions

View File

@ -206,12 +206,7 @@ char * strendG(const char* pstr) {
return NULL;
}
char * p = (char *)pstr + len - 2;
if (strcmp(p, "\\G") == 0) {
return p;
}
p = (char *)pstr + len - 3;
char * p = (char *)pstr + len - 3;
if (strcmp(p, "\\G;") == 0 ){
return p;
}