Blame wireshark-1.8.x-tap-iostat-overflow.patch
|
Peter Hatina |
f0bdc1 |
diff --git a/ui/cli/tap-iostat.c b/ui/cli/tap-iostat.c
|
|
Peter Hatina |
f0bdc1 |
index 6722c01..dd1c6f1 100644
|
|
Peter Hatina |
f0bdc1 |
--- a/ui/cli/tap-iostat.c
|
|
Peter Hatina |
f0bdc1 |
+++ b/ui/cli/tap-iostat.c
|
|
Peter Hatina |
f0bdc1 |
@@ -927,7 +927,7 @@ iostat_draw(void *arg)
|
|
Peter Hatina |
f0bdc1 |
num_rows = (int)(duration/interval) + (((duration%interval+500000)/1000000) > 0 ? 1 : 0);
|
|
Peter Hatina |
f0bdc1 |
|
|
Peter Hatina |
f0bdc1 |
/* Load item_in_column with the first item in each column */
|
|
Peter Hatina |
f0bdc1 |
- item_in_column = (io_stat_item_t **) g_malloc(sizeof(io_stat_item_t) * num_cols);
|
|
Peter Hatina |
f0bdc1 |
+ item_in_column = (io_stat_item_t **) g_malloc(sizeof(io_stat_item_t *) * num_cols);
|
|
Peter Hatina |
f0bdc1 |
for (j=0; j
|
|
Peter Hatina |
f0bdc1 |
item_in_column[j] = stat_cols[j];
|
|
Peter Hatina |
f0bdc1 |
}
|