apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r767498 - /apr/apr/trunk/misc/unix/errorcodes.c
Date Wed, 22 Apr 2009 12:56:48 GMT
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 */



Mime
View raw message