Closed olebole closed 5 years ago
Don't increment slines after allocation, only reallocate it. Also fix the realloc() calling parameters.
slines
realloc()
This brings fgwrite back to work when a reallocation of slines was needed (the TOC contained more than 70 entries).
fgwrite
Closes #7.
Also, necessary #include statements are added to declare the standard functions.
#include
Don't increment
slines
after allocation, only reallocate it. Also fix therealloc()
calling parameters.This brings
fgwrite
back to work when a reallocation ofslines
was needed (the TOC contained more than 70 entries).Closes #7.
Also, necessary
#include
statements are added to declare the standard functions.