Stuart Henderson said:
> On 2014/12/02 09:41, Stuart Henderson wrote:
> > (except that OpenBSD doesn't run on systems where sizeof(char) != 1 ;)
> 
> Oh I just spotted that was in the original files in cvs ;)
> 
> 1.1          (sturm    15-Feb-06): -  if ( (logline_buffer=(char 
> *)malloc(logline_buffer_size)) == NULL ) {
> 1.1          (sturm    15-Feb-06): +  if ( (logline_buffer=(char 
> *)calloc(logline_buffer_size,sizeof(char))) == NULL ) {

What does motivate people to check sizeof(char) but not sizeof(char *)?

Diff looks good to me.  Did not test.

-- 
Dmitrij D. Czarkoff

Reply via email to