summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2009-04-22 12:56:47 +0000
committerJeff Trawick <trawick@apache.org>2009-04-22 12:56:47 +0000
commiteccdd10af6d7bb0cc252b1950b25e5d934a13a03 (patch)
tree3ba47dc8cf9f74735ab0b9bea62028db726d58e4 /misc
parent08c3c64f91e891d4c1efd530e45c325ffd293fef (diff)
downloadapr-eccdd10af6d7bb0cc252b1950b25e5d934a13a03.tar.gz
apr_strerror() on OS/2: Fix problem with calculating buffer size.
PR: 45689 Submitted by: Erik Lax <apache datahack.se> Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@767498 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r--misc/unix/errorcodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/unix/errorcodes.c b/misc/unix/errorcodes.c
index 99a81351d..4764998c3 100644
--- a/misc/unix/errorcodes.c
+++ b/misc/unix/errorcodes.c
@@ -162,7 +162,7 @@ static char *apr_os_strerror(char* buf, apr_size_t bufsize, int err)
pos = result;
if (len >= sizeof(result))
- len = sizeof(result-1);
+ len = sizeof(result) - 1;
for (c=0; c<len; c++) {
/* skip multiple whitespace */