You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2009/04/22 14:58:09 UTC
svn commit: r767501 - in /apr/apr/branches/1.3.x: CHANGES
misc/unix/errorcodes.c
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 <apache datahack.se>
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 <apache datahack.se>]
+
*) 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<len; c++) {
/* skip multiple whitespace */