We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec23e96 commit d767e76Copy full SHA for d767e76
1 file changed
src/qcommon/common.cpp
@@ -583,10 +583,9 @@ Com_StringContains
583
============
584
*/
585
static const char *Com_StringContains(const char *str1, const char *str2, int casesensitive) {
586
- ptrdiff_t len, i;
587
- size_t j;
+ int len, i, j;
588
589
- len = strlen(str1) - strlen(str2);
+ len = Q_strlen(str1) - Q_strlen(str2);
590
for (i = 0; i <= len; i++, str1++) {
591
for (j = 0; str2[j]; j++) {
592
if (casesensitive) {
0 commit comments