Dear wsjt developers,

I've just found a small bug in the writec2file function in 
wsprd/wsprd_exp.c. It creates .c2 files that can't be read by the 
readc2file function.

The following code on line 537 in wsprd/wsprd_exp.c

     nwrite = fwrite(buffer, sizeof(double), 2*45000, fp);

should be replaced with

     nwrite = fwrite(buffer, sizeof(float), 2*45000, fp);


and buffer declaration and initialization on lines 516-518


     double *buffer;
     buffer=malloc(sizeof(double)*2*45000);
     memset(buffer,0,sizeof(double)*2*45000);

should be replaced with

     float *buffer;
     buffer=malloc(sizeof(float)*2*45000);
     memset(buffer,0,sizeof(float)*2*45000);

Best regards,

Pavel

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to