From dcb3c31dc44aa5b29981d1accf6ed23190f1c3f9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 21 May 2014 13:56:25 +0200 Subject: [PATCH] zoom: fix invalid present response in some cases MP-546 --- src/filter_zoom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index 5a44469..e2145a5 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -1764,7 +1764,7 @@ Z_Records *yf::Zoom::Frontend::get_records(mp::Package &package, npl->num_records = i; npl->records = (Z_NamePlusRecord **) odr_malloc(odr, i * sizeof(*npl->records)); - for (i = 0; i < number_to_present; i++) + for (i = 0; i < npl->num_records; i++) { Z_NamePlusRecord *npr = 0; const char *addinfo; -- 1.7.10.4