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:56:48 UTC
svn commit: r767498 - /apr/apr/trunk/misc/unix/errorcodes.c
Author: trawick
Date: Wed Apr 22 12:56:47 2009
New Revision: 767498
URL: http://svn.apache.org/viewvc?rev=767498&view=rev
Log:
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/trunk/misc/unix/errorcodes.c
Modified: apr/apr/trunk/misc/unix/errorcodes.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/misc/unix/errorcodes.c?rev=767498&r1=767497&r2=767498&view=diff
==============================================================================
--- apr/apr/trunk/misc/unix/errorcodes.c (original)
+++ apr/apr/trunk/misc/unix/errorcodes.c Wed Apr 22 12:56:47 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 */