tb_str: finding the empty string should work in all strings

This commit is contained in:
Crypto City 2022-08-29 05:30:12 +00:00
parent ff19ced1f4
commit 86cd1ebe17

View File

@ -26,6 +26,8 @@ const char *stristr(const char *arg1, const char *arg2)
{
const char *a, *b;
if (!*arg2)
return arg1;
for(;*arg1;arg1++)
{
a = arg1;