iraf-community / iraf-fitsutil

FITS utilities
https://iraf.readthedocs.io/en/latest/tasks/fitsutil
Other
1 stars 1 forks source link

Fix slines handling in fgwrite.c #8

Closed olebole closed 5 years ago

olebole commented 5 years ago

Don't increment slines after allocation, only reallocate it. Also fix the realloc() calling parameters.

This brings fgwrite back to work when a reallocation of slines was needed (the TOC contained more than 70 entries).

Closes #7.

Also, necessary #include statements are added to declare the standard functions.