Skip to content

Commit 2c2cf93

Browse files
committed
fix Rcpp -Wformat-security warning
for howto, see RcppCore/Rcpp#1287
1 parent e52494b commit 2c2cf93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RcppExports.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ RcppExport SEXP _sf_CPL_read_wkb(SEXP wkb_listSEXP, SEXP EWKBSEXP, SEXP spatiali
13521352
if (rcpp_isError_gen) {
13531353
SEXP rcpp_msgSEXP_gen = Rf_asChar(rcpp_result_gen);
13541354
UNPROTECT(1);
1355-
Rf_error(CHAR(rcpp_msgSEXP_gen));
1355+
Rf_error("%s", CHAR(rcpp_msgSEXP_gen));
13561356
}
13571357
UNPROTECT(1);
13581358
return rcpp_result_gen;
@@ -1387,7 +1387,7 @@ RcppExport SEXP _sf_CPL_write_wkb(SEXP sfcSEXP, SEXP EWKBSEXP) {
13871387
if (rcpp_isError_gen) {
13881388
SEXP rcpp_msgSEXP_gen = Rf_asChar(rcpp_result_gen);
13891389
UNPROTECT(1);
1390-
Rf_error(CHAR(rcpp_msgSEXP_gen));
1390+
Rf_error("%s", CHAR(rcpp_msgSEXP_gen));
13911391
}
13921392
UNPROTECT(1);
13931393
return rcpp_result_gen;

0 commit comments

Comments
 (0)