1 diff -ur top-3.8beta1/display.c top-3.8beta1-p/display.c
2 --- top-3.8beta1/display.c 2016-10-04 15:11:26.584585961 +0300
3 +++ top-3.8beta1-p/display.c 2016-10-04 15:11:23.456363934 +0300
8 - display_write(x, y, color, 0, itoa((int)num));
9 + display_write(x, y, color, 0, itoa(num));
12 /* next iteration will not start at x, y */
13 diff -ur top-3.8beta1/utils.c top-3.8beta1-p/utils.c
14 --- top-3.8beta1/utils.c 2008-05-07 07:41:39.000000000 +0400
15 +++ top-3.8beta1-p/utils.c 2016-10-04 15:12:54.413001306 +0300
20 - * itoa - convert integer (decimal) to ascii string for positive numbers
21 + * itoa - convert integer (long) to ascii string for positive numbers
22 * only (we don't bother with negative numbers since we know we
27 - * How do we know that 16 will suffice?
28 + * How do we know that 24 will suffice?
29 * Because the biggest number that we will
30 - * ever convert will be 2^32-1, which is 10
31 + * ever convert will be 2^64-1, which is 20
41 - static char buffer[16]; /* result is built here */
42 - /* 16 is sufficient since the largest number
43 - we will ever convert will be 2^32-1,
44 - which is 10 digits. */
45 + static char buffer[24]; /* result is built here */
46 + /* 24 is sufficient since the largest number
47 + we will ever convert will be 2^64-1,
48 + which is 20 digits. */
50 ptr = buffer + sizeof(buffer);
52 diff -ur top-3.8beta1/utils.h top-3.8beta1-p/utils.h
53 --- top-3.8beta1/utils.h 2008-05-07 07:41:39.000000000 +0400
54 +++ top-3.8beta1-p/utils.h 2016-10-04 15:11:23.451063067 +0300
61 char *itoa_w(int, int);