View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum ↗

iraf-v216 · Code · Issues (50) · Pull requests (81)

iraf.net pull request #123

Specify explicit format for fprintf()

merge olebole merged 1 commit to iraf-community/iraf


olebole commented on 2017-12-13

This changes

fprintf (fp, message);  

to

fprintf (fp, "%s", message);  

The second argument in fprintf() needs to be a format, not the (random) string that is actually filled in. Otherwise, the behaviour is unexpected/undefined when the string contains a percent sign.


Commits


Last updated on 2017-12-13