On 02/12/2020 21:55, Rud Merriam wrote:

Hi Bill,

I realize that is the default. But if they pass in a directory there is no check if the directory exists. There should be a error in that case.

One reason I'm mentioning this is I'm not sure how much wsprd code is carried over to other wjst code where it could be a bigger issue.

----

Also, in 'readc2file' the variable definition 'char* c2file[15];' should not be pointer. It should be ' char c2file[15];'. In the later 'fread' it should be passed as an address:

    nr = fread( &c2file, sizeof(char), 14, fp);

The original is a pointer to a 15 char c-string that doesn't exist. Fortunately, it is never used. It just eats the filename from the beginning of the file.


-73 -
*Rud Merriam K5RUD*

Hi Rud,

WSJT-X invokes wsprd as a sub-process. It always calls it with an existing data directory.

Thanks for the note about the .c2 file reader. I will fix that.

73
Bill
G4WJS.

_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to