Subject: Re: bin/3427: sizeof() problems in cron
To: Simon Burge <simonb@telstra.com.au>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: netbsd-bugs
Date: 04/01/1997 13:54:01
> 	The sizeof() operator is used incorrectly in buffer size
> 	calculations.  I'm really not sure what the defined behaviour
> 	of sizeof(variable - 1) is...

Same as any sizeof(expression): the size of the type of the expression.
In these cases, since variable is a char array, variable-1 is a char *,
so sizeof(variable-1) is sizeof(char *), probably 4 or 8.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B