summaryrefslogtreecommitdiffstats
path: root/core/statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/statistics.c')
-rw-r--r--core/statistics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/statistics.c b/core/statistics.c
index 9dd495b51..d8ddf914c 100644
--- a/core/statistics.c
+++ b/core/statistics.c
@@ -123,7 +123,7 @@ void process_all_dives(struct dive *dive, struct dive **prev_dive)
free(stats_by_type);
size = sizeof(stats_t) * (dive_table.nr + 1);
- tsize = sizeof(stats_t) * (NUM_DC_TYPE + 1);
+ tsize = sizeof(stats_t) * (NUM_DIVEMODE + 1);
stats_yearly = malloc(size);
stats_monthly = malloc(size);
stats_by_trip = malloc(size);