Hello,
thank you for providing this project. I have compiled it and have found and fixed few bugs. Please accept my bugfixes for the following:
- vdl120.c:535: data_curr can be a NULL pointer. if(data_curr) needed.
- vdl120.c:595: memset clears sizeof pointer, not sizeof struct config. Remove memset and replace malloc with cfg = calloc(1,sizeof(struct config));
- vdl120.c:602: missing cfg->num_data_rec=0; (if #2 applied, this is no longer necessary).
- vdl120.c:628: strncpy should be followed by cfg->name[16-1]=0. If 16 or more characters are passed, the string won't get otherwise terminated.
Cheers,
Tomas