mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2025-12-18 13:24:36 +03:00
Fix all the warnings and notes
This commit is contained in:
@@ -46,11 +46,11 @@ char *repl_str(const char *str, const char *from, const char *to) {
|
||||
}
|
||||
}
|
||||
|
||||
pos_cache[count-1] = pstr2 - str;
|
||||
pos_cache[count-1] = (uintptr_t)(pstr2 - str);
|
||||
pstr = pstr2 + fromlen;
|
||||
}
|
||||
|
||||
orglen = pstr - str + strlen(pstr);
|
||||
orglen = (size_t)(pstr - str) + strlen(pstr);
|
||||
|
||||
/* Allocate memory for the post-replacement string. */
|
||||
if (count > 0) {
|
||||
|
||||
Reference in New Issue
Block a user