diff options
author | Jeff Trawick <trawick@apache.org> | 2011-04-06 13:04:12 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2011-04-06 13:04:12 +0000 |
commit | 892373af8586cbead091981141193c1d79bb70d4 (patch) | |
tree | d1b77e3cea5baebc871b454b043e5b2f37eb99a5 /xlate | |
parent | 507e014a790fc1e7a30ff608597b4874391fc876 (diff) | |
download | apr-892373af8586cbead091981141193c1d79bb70d4.tar.gz |
change apr_palloc+memcpy to apr_pmemdup
PR: 47776
Submitted by: Boya Sun <boya.sun case.edu>
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1089438 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'xlate')
-rw-r--r-- | xlate/xlate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlate/xlate.c b/xlate/xlate.c index 400949f1c..ab1c5f508 100644 --- a/xlate/xlate.c +++ b/xlate/xlate.c @@ -117,8 +117,8 @@ static void check_sbcs(apr_xlate_t *convset) * close the iconv descriptor */ - convset->sbcs_table = apr_palloc(convset->pool, sizeof(outbuf)); - memcpy(convset->sbcs_table, outbuf, sizeof(outbuf)); + convset->sbcs_table = apr_pmemdup(convset->pool, outbuf, sizeof(outbuf)); + iconv_close(convset->ich); convset->ich = (iconv_t)-1; |