Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 61705 invoked from network); 22 Apr 2009 12:58:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 12:58:39 -0000 Received: (qmail 31611 invoked by uid 500); 22 Apr 2009 12:58:39 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 31552 invoked by uid 500); 22 Apr 2009 12:58:39 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 31542 invoked by uid 99); 22 Apr 2009 12:58:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 12:58:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 12:58:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D6FAE2388B6C; Wed, 22 Apr 2009 12:58:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r767501 - in /apr/apr/branches/1.3.x: CHANGES misc/unix/errorcodes.c Date: Wed, 22 Apr 2009 12:58:09 -0000 To: commits@apr.apache.org From: trawick@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090422125809.D6FAE2388B6C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: trawick Date: Wed Apr 22 12:58:09 2009 New Revision: 767501 URL: http://svn.apache.org/viewvc?rev=767501&view=rev Log: backport r767498 from trunk apr_strerror() on OS/2: Fix problem with calculating buffer size. PR: 45689 Submitted by: Erik Lax Reviewed by: trawick Modified: apr/apr/branches/1.3.x/CHANGES apr/apr/branches/1.3.x/misc/unix/errorcodes.c Modified: apr/apr/branches/1.3.x/CHANGES URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/CHANGES?rev=767501&r1=767500&r2=767501&view=diff ============================================================================== --- apr/apr/branches/1.3.x/CHANGES [utf-8] (original) +++ apr/apr/branches/1.3.x/CHANGES [utf-8] Wed Apr 22 12:58:09 2009 @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes for APR 1.3.4 + *) apr_strerror() on OS/2: Fix problem with calculating buffer size. + PR 45689. [Erik Lax ] + *) Prefer glibtool1/glibtoolize1. [Jim Jagielski] *) Fix buildconf with libtool 2.2. [Joe Orton] Modified: apr/apr/branches/1.3.x/misc/unix/errorcodes.c URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/misc/unix/errorcodes.c?rev=767501&r1=767500&r2=767501&view=diff ============================================================================== --- apr/apr/branches/1.3.x/misc/unix/errorcodes.c (original) +++ apr/apr/branches/1.3.x/misc/unix/errorcodes.c Wed Apr 22 12:58:09 2009 @@ -162,7 +162,7 @@ pos = result; if (len >= sizeof(result)) - len = sizeof(result-1); + len = sizeof(result) - 1; for (c=0; c