On Sun, Jul 07, 2002 at 03:28:51PM -0700, Mike Makonnen wrote:
MALLOC(copy, struct plimit *, sizeof(struct plimit),
M_SUBPROC, M_WAITOK);
- bcopy(lim-pl_rlimit, copy-pl_rlimit, sizeof(struct plimit));
+ bcopy(lim-pl_rlimit, copy-pl_rlimit, sizeof(struct rlimit));
On Mon, 8 Jul 2002, David Malone wrote:
On Sun, Jul 07, 2002 at 03:28:51PM -0700, Mike Makonnen wrote:
MALLOC(copy, struct plimit *, sizeof(struct plimit),
M_SUBPROC, M_WAITOK);
- bcopy(lim-pl_rlimit, copy-pl_rlimit, sizeof(struct plimit));
+ bcopy(lim-pl_rlimit,
Hello folks,
The limcopy() function bcopy()s a struct rlimit, but the len argument to
bcopy() is given as sizeof(struct plimit). This hasn't caused any
problems
so far because the destination address is the first member of struct
plimit
and all the other member of plimit are initialized