Changeset 12068


Ignore:
Timestamp:
04/20/12 08:10:13 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixed OLD segfault in Chaco

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/modules/Chaco/Chaco.cpp

    r12060 r12068  
    5454        nvtxs = mxGetN(A_IN);
    5555        mwstart = mxGetJc(A_IN);
    56         start=(int*)xmalloc(nvtxs*sizeof(int));
     56        start=(int*)xmalloc((nvtxs+1)*sizeof(int));
    5757        for (i=0; i<nvtxs+1;i++)start[i]=(int)mwstart[i];
    5858
Note: See TracChangeset for help on using the changeset viewer.