Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 18983 invoked from network); 14 Jul 2007 00:09:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2007 00:09:21 -0000 Received: (qmail 33803 invoked by uid 500); 14 Jul 2007 00:09:24 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 33783 invoked by uid 500); 14 Jul 2007 00:09:24 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 33770 invoked by uid 99); 14 Jul 2007 00:09:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 17:09:24 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2007 17:09:21 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id B2EEE1A981A; Fri, 13 Jul 2007 17:09:00 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r556190 - /incubator/stdcxx/trunk/src/locale_body.cpp Date: Sat, 14 Jul 2007 00:09:00 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070714000900.B2EEE1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Fri Jul 13 17:08:59 2007 New Revision: 556190 URL: http://svn.apache.org/viewvc?view=rev&rev=556190 Log: 2007-07-13 Martin Sebor STDCXX-485 * locale_body.cpp (_C_manage): Reset the capacity of the locale buffer to the capacity of the statically allocated buffer after its size shrinks below that level. Modified: incubator/stdcxx/trunk/src/locale_body.cpp Modified: incubator/stdcxx/trunk/src/locale_body.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/locale_body.cpp?view=diff&rev=556190&r1=556189&r2=556190 ============================================================================== --- incubator/stdcxx/trunk/src/locale_body.cpp (original) +++ incubator/stdcxx/trunk/src/locale_body.cpp Fri Jul 13 17:08:59 2007 @@ -918,7 +918,11 @@ (n_locales - inx) * sizeof (*locales)); delete[] locales; - locales = locale_buf; + + // point at the statically allocated buffer and reset + // the current capacity to the original capacity + locales = locale_buf; + locale_bufsize = bufsize; } else { // move facet pointers back