SCCS-vsn: lib/libc/stdlib/malloc.c 4.6
-static char sccsid[] = "@(#)malloc.c 4.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)malloc.c 4.6 (Berkeley) %G%";
* Record allocated size of block and
* bound space with magic numbers.
*/
* Record allocated size of block and
* bound space with magic numbers.
*/
+ op->ov_size = (nbytes + RSLOP - 1) & ~(RSLOP - 1);
- *(u_short *)((caddr_t)(op + 1) + nbytes) = RMAGIC;
+ *(u_short *)((caddr_t)(op + 1) + op->ov_size) = RMAGIC;
#endif
return ((char *)(op + 1));
}
#endif
return ((char *)(op + 1));
}
}
if (nbytes <= onb && nbytes > i) {
#ifdef RCHECK
}
if (nbytes <= onb && nbytes > i) {
#ifdef RCHECK
+ op->ov_size = (nbytes + RSLOP - 1) & ~(RSLOP - 1);
*(u_short *)((caddr_t)(op + 1) + op->ov_size) = RMAGIC;
#endif
return(cp);
*(u_short *)((caddr_t)(op + 1) + op->ov_size) = RMAGIC;
#endif
return(cp);