Christian Mauderer commented on a discussion on misc/bin2c/rtems-bin2c.c: 
https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/58#note_122002

 > +
 > +  if (fseek(file, 0, SEEK_SET) != 0) {
 > +    perror("error: could not seek to start of license file");
 > +    fclose(file);
 > +    exit(1);
 > +  }
 > +
 > +  buffer = malloc(length + 1);
 > +  if (!buffer) {
 > +    perror("error: could not allocate memory for license file");
 > +    fclose(file);
 > +    exit(1);
 > +  }
 > +
 > +  readsize = fread(buffer, 1, length, file);
 > +  if (readsize != length) {

Thanks.

I only did a `./waf configure` and `./waf` in the rtems-tools repo. So nothing 
special.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/tools/rtems-tools/-/merge_requests/58#note_122002
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to