diff options
author | Jeremy Allison <jra@samba.org> | 1998-04-10 18:21:16 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-04-10 18:21:16 +0000 |
commit | 52e3966fbcf7b5fbdbc7cbe9ac0b453ab5bf3217 (patch) | |
tree | 851609efdd1d0a81063808cc6bd783f1d3e0dc67 /source/lib/membuffer.c | |
parent | 5d6f63a7e665ee19bd4508b2b40d497e9851b248 (diff) | |
download | samba-52e3966fbcf7b5fbdbc7cbe9ac0b453ab5bf3217.tar.gz samba-52e3966fbcf7b5fbdbc7cbe9ac0b453ab5bf3217.tar.xz samba-52e3966fbcf7b5fbdbc7cbe9ac0b453ab5bf3217.zip |
includes.h: Moved HPUX undefine of SEMMSL to where it actually does something.
ipc.c: Added Luke's debug statement.
locking_slow.c: Added FTRUNCATE_NEEDS_ROOT code for broken systems that
need it (not sure what these are yet).
membuffer.c ntdomain.h proto.h
lib/rpc/include/rpc_dce.h lib/rpc/include/rpc_srvsvc.h
lib/rpc/parse/parse_prs.c lib/rpc/parse/parse_rpc.c
lib/rpc/server/srv_pipe_hnd.c lib/rpc/server/srv_util.c:
Re-merge of Luke's NTDOM changes 'cos he's a lazy git with
carpel tunnel syndrome :-).
Jeremy.
Diffstat (limited to 'source/lib/membuffer.c')
-rw-r--r-- | source/lib/membuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/membuffer.c b/source/lib/membuffer.c index cf832c13cc3..90b07047d32 100644 --- a/source/lib/membuffer.c +++ b/source/lib/membuffer.c @@ -293,11 +293,11 @@ BOOL mem_realloc_data(struct mem_buf *buf, int new_size) /******************************************************************* reallocate a memory buffer, retrospectively :-) ********************************************************************/ -BOOL mem_grow_data(struct mem_buf **buf, BOOL io, int new_size) +BOOL mem_grow_data(struct mem_buf **buf, BOOL io, int new_size, BOOL force_grow) { if (new_size + (*buf)->margin >= (*buf)->data_size) { - if (io) + if (io && !force_grow) { DEBUG(3,("mem_grow_data: cannot resize when reading from a data stream\n")); } |