summaryrefslogtreecommitdiffstats
path: root/docs/htmldocs/smbclient.1.html
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-03 00:03:38 +0000
committerJeremy Allison <jra@samba.org>2001-03-03 00:03:38 +0000
commita150b174921f5c3518f579ac8bba597b3b7b8efb (patch)
tree1e4b6b9e9bba884998885a47909484bba0f5e99b /docs/htmldocs/smbclient.1.html
parent31be23363140750d993698a0eec0a789127a3375 (diff)
downloadsamba-a150b174921f5c3518f579ac8bba597b3b7b8efb.tar.gz
samba-a150b174921f5c3518f579ac8bba597b3b7b8efb.tar.xz
samba-a150b174921f5c3518f579ac8bba597b3b7b8efb.zip
Added a simple talloc_realloc and changed some code in spoolss to use it.
It works by adding a TALLOC_ALIGN_SIZE (32 byte) prefix to each talloc area, and storing the current size and back pointer to the talloc_chunk area that points to the current chunk we're in. We check if we're the last area at the end of the chunk (which we commonly are when doing a Realloc loop) and there's free space then we just adjust the length and return the same value, otherwise we talloc the new size, and then memcpy. Checked out and seems to be fine, and the maximum TALLOC size returned is 24k (although I intend to check with a 10,000 print job list output). Jeremy.
Diffstat (limited to 'docs/htmldocs/smbclient.1.html')
0 files changed, 0 insertions, 0 deletions