Skip to content

Commit 86e5067

Browse files
committed
Fix printf warnings for cran
1 parent 7076707 commit 86e5067

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
1.8.8
22
- Apply libyajl patches for CVE-2022-24795, CVE-2022-24795, CVE-2023-33460
3+
- Fix printf warnings for cran
34

45
1.8.7
56
- toJSON(digits = NA) once again prints 15 digits max

src/parse.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ SEXP R_parse(SEXP x, SEXP bigint_as_char) {
3535

3636
/* parser error */
3737
if (!node) {
38-
Rf_errorcall(R_NilValue, errbuf);
38+
Rf_errorcall(R_NilValue, "%s", errbuf);
3939
}
4040
SEXP out = ParseValue(node, bigint);
4141
yajl_tree_free(node);

src/push_parser.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ SEXP R_parse_connection(SEXP sConn, SEXP bigint_as_char){
6868
strncpy(errbuf, (char *) errstr, bufsize - 1);
6969
yajl_free_error(push_parser, errstr);
7070
yajl_free(push_parser);
71-
Rf_error(errbuf);
71+
Rf_error("%s", errbuf);
7272
}

0 commit comments

Comments
 (0)