From 460adc4a1840e5bd2e5ebd0029f1ee76540e6634 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Wed, 7 Jun 2017 11:16:44 +0200 Subject: [PATCH] fixed segfault in usrp_capture_sync --- lib/examples/usrp_capture_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/examples/usrp_capture_sync.c b/lib/examples/usrp_capture_sync.c index 6938ee878..6d2ec18dc 100644 --- a/lib/examples/usrp_capture_sync.c +++ b/lib/examples/usrp_capture_sync.c @@ -100,7 +100,7 @@ void parse_args(int argc, char **argv) { int srslte_rf_recv_wrapper(void *h, cf_t *data[SRSLTE_MAX_PORTS], uint32_t nsamples, srslte_timestamp_t *t) { DEBUG(" ---- Receive %d samples ---- \n", nsamples); - return srslte_rf_recv(h, data[2], nsamples, 1); + return srslte_rf_recv(h, data[0], nsamples, 1); } int main(int argc, char **argv) {