mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 13:48:42 -05:00
Fix memory allocation error.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8494 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
4f96fbd1ca
commit
0829cdb98c
@ -540,12 +540,12 @@ void subtract_signal2(float *id, float *qd, long np,
|
||||
|
||||
float *refi, *refq, *ci, *cq, *cfi, *cfq;
|
||||
|
||||
refi=calloc(nc2,sizeof(float)*nc2);
|
||||
refq=calloc(nc2,sizeof(float)*nc2);
|
||||
ci=calloc(nc2,sizeof(float)*nc2);
|
||||
cq=calloc(nc2,sizeof(float)*nc2);
|
||||
cfi=calloc(nc2,sizeof(float)*nc2);
|
||||
cfq=calloc(nc2,sizeof(float)*nc2);
|
||||
refi=calloc(nc2,sizeof(float));
|
||||
refq=calloc(nc2,sizeof(float));
|
||||
ci=calloc(nc2,sizeof(float));
|
||||
cq=calloc(nc2,sizeof(float));
|
||||
cfi=calloc(nc2,sizeof(float));
|
||||
cfq=calloc(nc2,sizeof(float));
|
||||
|
||||
twopidt=2.0*pi*dt;
|
||||
|
||||
@ -833,7 +833,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if( stackdecoder ) {
|
||||
stack=calloc(sizeof(struct snode),stacksize);
|
||||
stack=calloc(stacksize,sizeof(struct snode));
|
||||
}
|
||||
|
||||
if( optind+1 > argc) {
|
||||
|
Loading…
Reference in New Issue
Block a user