Skip to content

Commit

Permalink
Fix printf warnings for cran
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Dec 4, 2023
1 parent 7076707 commit e6f89b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1.8.8
- Apply libyajl patches for CVE-2022-24795, CVE-2022-24795, CVE-2023-33460
- Fix printf warnings for cran

1.8.7
- toJSON(digits = NA) once again prints 15 digits max
Expand Down
2 changes: 1 addition & 1 deletion src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SEXP R_parse(SEXP x, SEXP bigint_as_char) {

/* parser error */
if (!node) {
Rf_errorcall(R_NilValue, errbuf);
Rf_errorcall(R_NilValue, "%s" errbuf);
}
SEXP out = ParseValue(node, bigint);
yajl_tree_free(node);
Expand Down
2 changes: 1 addition & 1 deletion src/push_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ SEXP R_parse_connection(SEXP sConn, SEXP bigint_as_char){
strncpy(errbuf, (char *) errstr, bufsize - 1);
yajl_free_error(push_parser, errstr);
yajl_free(push_parser);
Rf_error(errbuf);
Rf_error("%s", errbuf);
}

0 comments on commit e6f89b3

Please sign in to comment.