Skip to content

Commit

Permalink
Merge branch 'master' into 2024-01-06_Fix_failing_test_pdp-calc1
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker authored Jan 7, 2024
2 parents 9acbf83 + f713618 commit 9f05fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rrd_rpncalc.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static short addop2str(
rrd_set_error("failed to alloc memory in addop2str");
return -1;
}
strncpy(&((*result_str)[*offset]), op_str, op_len);
strncpy(*result_str + *offset, op_str, op_len + 1);
*offset += op_len;
return 1;
}
Expand Down

0 comments on commit 9f05fe6

Please sign in to comment.