Skip to content

Commit

Permalink
avoid -Wformat-security warning
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Nov 28, 2023
1 parent dca9e63 commit b8cf675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udunits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extern "C" {
void r_error_fn(const char* fmt, va_list args) {
char buf[256];
vsnprintf(buf, (size_t) 256, fmt, args);
Rf_error(buf);
Rf_error("%s", buf);
}
}

Expand Down

0 comments on commit b8cf675

Please sign in to comment.