diff --git a/codecs/ilbc/iCBSearch.c b/codecs/ilbc/iCBSearch.c
index f6ddaea89539cf0909778e1b7450c13e7299cd15..5ec4e66cefb0ea1fc46310a98b955a078bf6fe01 100755
--- a/codecs/ilbc/iCBSearch.c
+++ b/codecs/ilbc/iCBSearch.c
@@ -117,9 +117,8 @@ void iCBSearch(
             *ppe=0.0; 
             pp=buf+LPC_FILTERORDER+lMem-lTarget; 
             for (j=0; j<lTarget; j++) { 
-		// XXXXXX is this the coder's intent?
-                //*ppe+=(*pp)*(*pp++); 
-                *ppe+=(pp[0])*(pp[1]); 
+                *ppe+=(*pp)*(*pp); 
+				pp++;
             } 
              
             if(*ppe>0.0) { 
@@ -297,9 +296,8 @@ void iCBSearch(
  
             pp=cbvectors+lMem-lTarget; 
             for (j=0; j<lTarget; j++) { 
-		// XXXXXX is this the coder's intent?
-                //*ppe+=(*pp)*(*pp++); 
-                *ppe+=(pp[0])*(pp[1]); 
+                *ppe+=(*pp)*(*pp); 
+				pp++;
             } 
  
             ppi = cbvectors + lMem - 1 - lTarget;