Menu

#6 Bugfixes

v1.0 (example)
open
nobody
None
5
2016-03-14
2016-03-14
No

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:

  1. vdl120.c:535: data_curr can be a NULL pointer. if(data_curr) needed.
  2. vdl120.c:595: memset clears sizeof pointer, not sizeof struct config. Remove memset and replace malloc with cfg = calloc(1,sizeof(struct config));
  3. vdl120.c:602: missing cfg->num_data_rec=0; (if #2 applied, this is no longer necessary).
  4. 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

1 Attachments

Discussion


Log in to post a comment.