]> git.ipfire.org Git - thirdparty/git.git/blobdiff - imap-send.c
provide --color option for all ref-filter users
[thirdparty/git.git] / imap-send.c
index 351e84aea172415c94d7159c47b58abf508e0576..b2d0b849bb20c88532dd2952a4a5ae94204ccad8 100644 (file)
@@ -861,7 +861,7 @@ static char hexchar(unsigned int b)
        return b < 10 ? '0' + b : 'a' + (b - 10);
 }
 
-#define ENCODED_SIZE(n) (4*((n+2)/3))
+#define ENCODED_SIZE(n) (4 * DIV_ROUND_UP((n), 3))
 static char *cram(const char *challenge_64, const char *user, const char *pass)
 {
        int i, resp_len, encoded_len, decoded_len;