Re: Oops.
From: mark benedetto king <mbk_at_boredom.org>
Date: 2003-02-10 15:33:19 CET
On Sun, Feb 09, 2003 at 11:12:31PM -0600, cmpilato@collab.net wrote:
I had it without the null at first, but I thought adding it in
I see that you've done
*uuid = apr_pstrmemdup(trail->pool, value.data, value.size + 1);
It is my impression that BDB makes no guarantees about what the value
Anyway, because of this I went and actually *looked* at apr_pstrmemdup(),
*uuid = apr_pstrmemdup(trail->pool, value.data, value.size);
because apr_pstrmemdup() automatically allocates N+1 bytes and NUL-terminates.
Then we get to have our cake (not store the NULs) and eat it too (not
--ben
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.