@cryptotaxi247 / netdata-1 / commits / c629e561e

update_kernel_version

Fix overflow on Centos and probably Ubuntu

thiagoftsm committed Mar 3, 2021 at 10:28 UTC c629e561eb54cc4bfae0b508cc76f278790e3ad6
1 file changed +1 -1
libnetdata/ebpf/ebpf.c
+1 -1
@@ -97,7 +97,7 @@ int get_kernel_version(char *out, int size)
97 return -1;
98
99 move = patch;
100 - while (*version && *version != '\n')
100 + while (*version && *version != '\n' && *version != '-')
101 *move++ = *version++;
102 *move = '\0';
103