diff options
author | Jeff Trawick <trawick@apache.org> | 2009-04-22 12:56:47 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2009-04-22 12:56:47 +0000 |
commit | eccdd10af6d7bb0cc252b1950b25e5d934a13a03 (patch) | |
tree | 3ba47dc8cf9f74735ab0b9bea62028db726d58e4 /misc | |
parent | 08c3c64f91e891d4c1efd530e45c325ffd293fef (diff) | |
download | apr-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.c | 2 |
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 */ |