ofdm.c bug fix
authorokcsampson <okcsampson@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 9 Jun 2017 04:36:44 +0000 (04:36 +0000)
committerokcsampson <okcsampson@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 9 Jun 2017 04:36:44 +0000 (04:36 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3164 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/ofdm.c

index 131794528869d6139dab92f540ecfd4b5299f966..143c404c0365f09c5d2e77dfc87065ae78ee3aba 100644 (file)
@@ -254,7 +254,7 @@ struct OFDM *ofdm_create() {
 
     /* first copy the last Ncp values */
 
-    for (i = 0, j = (OFDM_M - OFDM_NC); i < (OFDM_M - OFDM_NC); i++, j++) {
+    for (i = 0, j = (OFDM_M - OFDM_NC); i < OFDM_NC; i++, j++) {
         ofdm->rate_fs_pilot_samples[i] = temp[j];
     }