mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 06:15:31 +00:00
Fix possible errors while building kernel module
This commit is contained in:
parent
e8bdd05839
commit
ba0f87d195
4
utils.c
4
utils.c
@ -514,7 +514,9 @@ void z_function(const char *str, int *zbuf, size_t len) {
|
|||||||
for (int i = 1; i < (int)len; i++) {
|
for (int i = 1; i < (int)len; i++) {
|
||||||
zbuf[i] = 0;
|
zbuf[i] = 0;
|
||||||
if (i < rh) {
|
if (i < rh) {
|
||||||
zbuf[i] = min(zbuf[i - lh], rh - i);
|
zbuf[i] = zbuf[i - lh];
|
||||||
|
if (rh - i < zbuf[i])
|
||||||
|
zbuf[i] = rh - i;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (i + zbuf[i] < len && str[zbuf[i]] == str[i + zbuf[i]])
|
while (i + zbuf[i] < len && str[zbuf[i]] == str[i + zbuf[i]])
|
||||||
|
Loading…
Reference in New Issue
Block a user