summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2011-01-19 02:51:23 +0000
committerjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2011-01-19 02:51:23 +0000
commita130eab8a1c2a06cc105c994239b78d66407c3e3 (patch)
treea602dcab44a8a6b5ec3a65fe2d518ac5511d65d2 /strings
parentd77616322ee2690d573616096d455f5b57360cd5 (diff)
downloadlibapr-a130eab8a1c2a06cc105c994239b78d66407c3e3.tar.gz
quite warning...
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1060659 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings')
-rw-r--r--strings/apr_snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/apr_snprintf.c b/strings/apr_snprintf.c
index 695739480..7c1aee52e 100644
--- a/strings/apr_snprintf.c
+++ b/strings/apr_snprintf.c
@@ -818,14 +818,14 @@ APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *),
* is "d' then the second if condition is never true.
*/
if ((sizeof(APR_OFF_T_FMT) > sizeof(APR_INT64_T_FMT)) &&
- (sizeof(APR_OFF_T_FMT) == 4 &&
+ ((sizeof(APR_OFF_T_FMT) == 4 &&
fmt[0] == APR_OFF_T_FMT[0] &&
fmt[1] == APR_OFF_T_FMT[1]) ||
(sizeof(APR_OFF_T_FMT) == 3 &&
fmt[0] == APR_OFF_T_FMT[0]) ||
(sizeof(APR_OFF_T_FMT) > 4 &&
strncmp(fmt, APR_OFF_T_FMT,
- sizeof(APR_OFF_T_FMT) - 2) == 0)) {
+ sizeof(APR_OFF_T_FMT) - 2) == 0))) {
/* Need to account for trailing 'd' and null in sizeof() */
var_type = IS_QUAD;
fmt += (sizeof(APR_OFF_T_FMT) - 2);