Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/Converters.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ SEXP ruby_to_R(VALUE obj)
str = rb_funcall(obj,rb_intern("inspect"),0);
str = rb_funcall(str,rb_intern("slice"),2,INT2NUM(0),INT2NUM(60));
sprintf(buf,"Unsupported object '%s' passed to R.\n",RSTRING_PTR(str));
rb_raise(rb_eArgError,buf);
rb_raise(rb_eArgError,"%s",buf);
PROTECT(robj = NULL); /* Protected to avoid stack inbalance */
}

Expand Down
2 changes: 1 addition & 1 deletion ext/R_eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ SEXP do_eval_expr(SEXP e) {
else {
rb_eRException = rb_const_get(rb_cObject,
rb_intern("RException"));
rb_raise(rb_eRException, get_last_error_msg());
rb_raise(rb_eRException, "%s", get_last_error_msg());
return NULL;
}
}
Expand Down