diff options
author | svnmir <svnmir@FreeBSD.org> | 2015-08-09 04:37:48 +0000 |
---|---|---|
committer | svnmir <svnmir@FreeBSD.org> | 2015-08-09 04:37:48 +0000 |
commit | 91308aec6ca93cab82659cd43b3f6a83d366350b (patch) | |
tree | 78a13bd0acf7405df6eb6ca94a4e354d124065a6 /subversion/libsvn_subr/string.c | |
parent | 0d1e05fe9c6027aaf742eb9b8b05f4dbefb92e2e (diff) | |
download | FreeBSD-src-91308aec6ca93cab82659cd43b3f6a83d366350b.zip FreeBSD-src-91308aec6ca93cab82659cd43b3f6a83d366350b.tar.gz |
Vendor import subversion-1.8.14
Diffstat (limited to 'subversion/libsvn_subr/string.c')
-rw-r--r-- | subversion/libsvn_subr/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subversion/libsvn_subr/string.c b/subversion/libsvn_subr/string.c index 20b0f24..c3d7fec 100644 --- a/subversion/libsvn_subr/string.c +++ b/subversion/libsvn_subr/string.c @@ -619,7 +619,7 @@ svn_stringbuf_insert(svn_stringbuf_t *str, if (bytes + count > str->data && bytes < str->data + str->blocksize) { /* special case: BYTES overlaps with this string -> copy the source */ - const char *temp = apr_pstrndup(str->pool, bytes, count); + const char *temp = apr_pmemdup(str->pool, bytes, count); svn_stringbuf_insert(str, pos, temp, count); } else @@ -659,7 +659,7 @@ svn_stringbuf_replace(svn_stringbuf_t *str, if (bytes + new_count > str->data && bytes < str->data + str->blocksize) { /* special case: BYTES overlaps with this string -> copy the source */ - const char *temp = apr_pstrndup(str->pool, bytes, new_count); + const char *temp = apr_pmemdup(str->pool, bytes, new_count); svn_stringbuf_replace(str, pos, old_count, temp, new_count); } else |