[MN-dev] [mndiff]: r188 - trunk/noe/ldpc.c
michael
subversion at mplayerhq.hu
Tue Jul 13 04:28:16 CEST 2010
Author: michael
Date: Tue Jul 13 04:28:16 2010
New Revision: 188
Log:
Fix allocation size of logline.
fixed crash
Modified:
trunk/noe/ldpc.c
Modified: trunk/noe/ldpc.c
==============================================================================
--- trunk/noe/ldpc.c Tue Jul 13 04:14:33 2010 (r187)
+++ trunk/noe/ldpc.c Tue Jul 13 04:28:16 2010 (r188)
@@ -47,7 +47,7 @@ typedef uint8_t ELEM;
static int inverse(ELEM *matrix, int width, int height, int solvew, unsigned int row_weight[], unsigned int col_weight[], int erasure_pos[], int (*op_table)[2]){
int i, j, k, m, p;
- int (*logline)[2]= malloc((width+1)*sizeof(int));
+ int (*logline)[2]= malloc((width+1)*sizeof(*logline));
int ops=0;
for(p=i=0; i<solvew; i++){
More information about the Mndiff-dev
mailing list