Skip to content

Commit

Permalink
Fix GCC 8 compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Dec 7, 2018
1 parent 658a205 commit 31ab469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/push_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ SEXP R_parse_connection(SEXP sConn, SEXP bigint_as_char){
return out;

JSON_FAIL:
strncpy(errbuf, (char *) errstr, bufsize);
strncpy(errbuf, (char *) errstr, bufsize - 1);
yajl_free_error(push_parser, errstr);
yajl_free(push_parser);
Rf_error(errbuf);
Expand Down

0 comments on commit 31ab469

Please sign in to comment.