apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r767500 - /apr/apr/branches/1.4.x/misc/unix/errorcodes.c
Date Wed, 22 Apr 2009 12:57:25 GMT
Author: trawick
Date: Wed Apr 22 12:57:24 2009
New Revision: 767500

URL: http://svn.apache.org/viewvc?rev=767500&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.4.x/misc/unix/errorcodes.c

Modified: apr/apr/branches/1.4.x/misc/unix/errorcodes.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/misc/unix/errorcodes.c?rev=767500&r1=767499&r2=767500&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/misc/unix/errorcodes.c (original)
+++ apr/apr/branches/1.4.x/misc/unix/errorcodes.c Wed Apr 22 12:57:24 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