HasThisSuffix matching
This commit is contained in:
parent
0edee5a017
commit
1d0cfdb2fe
|
|
@ -2157,7 +2157,7 @@ int HasThisSuffix(char* pIdent, char* pSuffix) {
|
|||
if (pIdent == NULL) {
|
||||
return 0;
|
||||
}
|
||||
if (pIdent < pSuffix) {
|
||||
if (len_ident < len_suffix) {
|
||||
return 0;
|
||||
}
|
||||
return strcmp(pIdent + len_ident - len_suffix, pSuffix) == 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue