Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
---|---|---|---|---|---|---|
01-Fix-missing-HOME-crash.patch | Fix a crash occurring when $HOME is not defined | Robert Luberda <robert@debian.org> | no | 2013-10-06 | ||
02-Make-counters-64-bit.patch | Make byte/packet counters 64 bit wmnd shows no traffic when 32 bit counter overflows, sscanf() return 4294967295 (0xffffffff) in that case. Simple test: int main() { const char *str = "4294967296 4299967296"; { unsigned long ib1, ib2; sscanf(str, "%lu %lu", &ib1, &ib2); printf("%lu %lu\n", ib1, ib2); printf("%lu\n", ib2-ib1); } { unsigned long long ib1, ib2; sscanf(str, "%llu %llu", &ib1, &ib2); printf("%llu %llu\n", ib1, ib2); printf("%llu\n", ib2-ib1); } return 0; } Output: 4294967295 4294967295 0 4294967296 4299967296 5000000 |
Vladimir Prodan <vc@artstyle.net> | no | 2011-06-05 | ||
03-Fix-compiler-warnings.patch | Fix compiler warnings Fix warnings like the following: ../../src/drivers.c:479:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [ -Wunused-result] fgets(temp, MAXBUF, fd); ../../src/wmnd.c:1199:23: warning: '%llu' directive output may be truncated writing between 1 and 11 bytes into a region of size 6 [-Wformat-truncation=] snprintf(buf, 7, "%c%llu", sign, value); ../../src/wmnd.c:1246:23: warning: '%f' directive output may be truncated writing between 3 and 317 bytes into a r egion of size 6 [-Wformat-truncation=] snprintf(buf, 7, "%c%f", sign, f); ^~ |
Robert Luberda <robert@debian.org> | no | 2018-08-31 | ||
04-Fix-strncpy-warning.patch | Fix strncpy compiler warning Fix the following warning: ./../src/drivers.c: In function 'linux_proc_list': ../../src/drivers.c:459:5: warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-t runcation] 459 | strncpy(temp, devname, sizeof(temp)); | ^ |
Robert Luberda <robert@debian.org> | no | 2024-01-14 |