diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-28 14:45:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-28 14:49:44 +0000 |
commit | ce41db40a7eb89f052ce3019b34f3227b96398a4 (patch) | |
tree | 3be3e0775b991418c7f4207ba24a2de68fc384f9 /main/busybox/fix-top.patch | |
parent | cecad8b1c1be62906f7788828ae425519408ad81 (diff) | |
download | aports-ce41db40a7eb89f052ce3019b34f3227b96398a4.tar.bz2 aports-ce41db40a7eb89f052ce3019b34f3227b96398a4.tar.xz |
main/busybox: fix the top patch
ref #3234
Diffstat (limited to 'main/busybox/fix-top.patch')
-rw-r--r-- | main/busybox/fix-top.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/busybox/fix-top.patch b/main/busybox/fix-top.patch new file mode 100644 index 0000000000..7d1cd4a364 --- /dev/null +++ b/main/busybox/fix-top.patch @@ -0,0 +1,14 @@ +diff --git a/procps/top.c b/procps/top.c +index 62f9421..119c32b 100644 +--- a/procps/top.c ++++ b/procps/top.c +@@ -536,7 +536,7 @@ static void parse_meminfo(unsigned long meminfo[MI_MAX]) + FILE *f; + int i; + +- memset(meminfo, 0, sizeof(meminfo)); ++ memset(meminfo, 0, MI_MAX*sizeof(unsigned long)); + f = xfopen_for_read("meminfo"); + while (fgets(buf, sizeof(buf), f) != NULL) { + char *c = strchr(buf, ':'); + |