iraf-v216 · Code · Issues (50) · Pull requests (81)
iraf.net pull request #123
Specify explicit format for fprintf()
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
- Specify explicit format for fprintf() [3c3e4a3f]
Last updated on 2017-12-13