Skip to content

Commit

Permalink
Fix typo (over-allocation).
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@84684 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed Jul 13, 2023
1 parent 4c0d08c commit ef5ab3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/Rscript.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main(int argc_, char *argv_[])
argv[0] = argv_[0];

size_t len = strlen(s);
char *buf = (char *)malloc((size_t) (len+1)*sizeof(char *));
char *buf = (char *)malloc((size_t) (len+1)*sizeof(char));
if (!buf) {
fprintf(stderr, "malloc failure\n");
exit(1);
Expand Down

0 comments on commit ef5ab3f

Please sign in to comment.