Skip to content

Commit

Permalink
Fix format-security warning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchall committed Nov 29, 2023
1 parent b74d548 commit e435724
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ipaddress (development version)

Fix for CRAN checks.

# ipaddress 1.0.1

Fix for CRAN checks.
Expand Down
2 changes: 1 addition & 1 deletion src/warn.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inline void warnOnRow(unsigned int index, const std::string &input, const std::s
msg += " (" + reason + ")";
}

Rf_warningcall(R_NilValue, msg.c_str());
Rf_warningcall(R_NilValue, "%s", msg.c_str());
}

}
Expand Down

0 comments on commit e435724

Please sign in to comment.