Skip to content

Commit

Permalink
add printf style formatting to Rf_error calls to resolve format-secur…
Browse files Browse the repository at this point in the history
…ity errors at compile time

Signed-off-by: Tom Callaway <[email protected]>
  • Loading branch information
spotrh authored and fbergmann committed May 24, 2024
1 parent a90f38c commit e71dfd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bindings/r/local.i
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ namespace std
$action
}
catch (const SBMLConstructorException &e){
Rf_error(e.what());
Rf_error("%s", e.what());
}
catch (const SBMLExtensionException &e){
Rf_error(e.what());
Rf_error("%s", e.what());
}
}
%enddef
Expand Down Expand Up @@ -311,7 +311,7 @@ SBMLCONSTRUCTOR_EXCEPTION(ListOfUnits)
$action
}
catch (const XMLConstructorException &e){
Rf_error(e.what());
Rf_error("%s", e.what());
}

}
Expand Down

0 comments on commit e71dfd5

Please sign in to comment.