Skip to content

Commit

Permalink
Fix keyword mis-write issue (add fits_flush call)
Browse files Browse the repository at this point in the history
  • Loading branch information
asercion committed Sep 14, 2017
1 parent db47479 commit 1fae807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FitsHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ namespace tip {
char tmp[FLEN_KEYWORD];
std::strncpy(tmp, value.c_str(), FLEN_KEYWORD - 1);
fits_update_key(m_fp, data_type_code, const_cast<char *>(name.c_str()), tmp, 0, &status);
fits_flush_file(m_fp,&status);
if (0 != status) throw TipException(status, formatWhat(std::string("Cannot write keyword \"") + name + '"'));
}

Expand Down

0 comments on commit 1fae807

Please sign in to comment.