[mw-devel] MW3 r881 - branches/portable/src

Peter Berry pwb at sucs.org
Sun Apr 30 01:11:26 BST 2006


On Sun, 30 Apr 2006, pwb at sucs.org wrote:

> @@ -1397,8 +1397,8 @@
>
> 	/* overwrite the xxxx with our PID */
> 	mypid=getpid();
> -	memcpy(&buff[1], &mypid, sizeof(userposn));
> -	memcpy(&gbuff[1], &mypid, sizeof(userposn));
> +	memcpy(&buff[1], &mypid, sizeof(mypid));
> +	memcpy(&gbuff[1], &mypid, sizeof(mypid));
> 	free(qtext);
>
> 	wfile=openwhofile(O_RDONLY);

Incidentally, is there any sane reason it was sizeof(userposn) in the 
first place?

-- 
Peter Berry, SUCS Ex-Treasurer
<pwb at sucs.org>



More information about the mw-devel mailing list