From 4be1b164f6d5069db32bb65f6a6a6b6f8e557e01 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 3 Oct 2014 13:18:54 -0300 Subject: [PATCH] FIXUP Signed-off-by: Mauro Carvalho Chehab --- lib/libdvbv5/dvb-scan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index 3b70f5a..d22c1d3 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -729,7 +729,9 @@ struct dvb_entry *dvb_scan_add_entry(struct dvb_v5_fe_parms *__p, return NULL; } - memcpy(new_entry, entry, sizeof(*entry)); + printf("Sizeof a full entry=%d, size of props=%d\n", sizeof(entry), sizeof(entry->props)); + memcpy(new_entry->props, entry->props, sizeof(entry->props)); + new_entry->n_props = entry->props; /* * The frequency should change to the new one. Seek for it and -- 2.7.4