diff options
author | Jeremy Allison <jra@samba.org> | 2000-08-30 22:54:54 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-08-30 22:54:54 +0000 |
commit | b26e3d2525c2ee09df426a9921c8c0337c1e071e (patch) | |
tree | 7efc0e113d1dcc6b60437c144e54b362d62fe10c /source3/rpc_parse | |
parent | c77bf3d9e2ef416050bd2a25576f8fa584107fb5 (diff) | |
download | samba-b26e3d2525c2ee09df426a9921c8c0337c1e071e.tar.gz samba-b26e3d2525c2ee09df426a9921c8c0337c1e071e.tar.bz2 samba-b26e3d2525c2ee09df426a9921c8c0337c1e071e.zip |
Fixed overrun write error when using debuglevel > 50.
Jeremy.
(This used to be commit 3d9b163655f684f2b98aa72f976379cee869db05)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_prs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c index f5a0bc642b..b9b52a029d 100644 --- a/source3/rpc_parse/parse_prs.c +++ b/source3/rpc_parse/parse_prs.c @@ -44,7 +44,7 @@ void prs_dump(char *name, int v, prs_struct *ps) if (fd != -1 || errno != EEXIST) break; } if (fd != -1) { - write(fd, ps->data_p + ps->data_offset, ps->grow_size - ps->data_offset); + write(fd, ps->data_p + ps->data_offset, ps->buffer_size - ps->data_offset); close(fd); DEBUG(0,("created %s\n", fname)); } |