summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2011-01-19 02:51:23 +0000
committerJim Jagielski <jim@apache.org>2011-01-19 02:51:23 +0000
commitd7112cd949520ac3cd253c18a9aa1177fc1d960f (patch)
treea602dcab44a8a6b5ec3a65fe2d518ac5511d65d2 /strings
parentbdcda65b1418114a65d76bfc3313c4afaf6840fa (diff)
downloadapr-d7112cd949520ac3cd253c18a9aa1177fc1d960f.tar.gz
quite warning...
git-svn-id: https://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);