Re: [Rd] Incorrect type in malloc in Rscript.c

2023-07-12 Thread Tomas Kalibera
On 7/13/23 00:26, Will McClennan wrote: I downloaded and compiled R-4.3.1 from cran.rstudio.com and on line 405 of Rscript.c in src/unix the line of code char *buf=(char*) malloc((size_t) (len+1)*sizeof(char *)); appears to be wrong to me. If an array of char* is being allocated then the ar

[Rd] Incorrect type in malloc in Rscript.c

2023-07-12 Thread Will McClennan
I downloaded and compiled R-4.3.1 from cran.rstudio.com and on line 405 of Rscript.c in src/unix the line of code char *buf=(char*) malloc((size_t) (len+1)*sizeof(char *)); appears to be wrong to me. If an array of char* is being allocated then the argument to sizeof should be char and not char

Re: [Rd] [R] Errors in "An introduction to R"

2023-07-12 Thread Jarkko Toivonen
Hi all, I originally sent my correction suggestions to R-help list since the R-intro document contains the following sentence: "Comments and corrections are always welcome. Please address email correspondence to r-h...@r-project.org." Maybe that email address needs updating as well. Jarkko O