From: Richard Russon Date: Thu, 5 Sep 2019 21:09:45 +0000 (+0100) Subject: rename variable alph to hex X-Git-Tag: 2019-10-25~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae5dcd8ab7f2bc9c45e29c2b0001e39d97e69890;p=neomutt rename variable alph to hex For clarity --- diff --git a/email/url.c b/email/url.c index 1ec90e5ef..e7b35bf29 100644 --- a/email/url.c +++ b/email/url.c @@ -314,7 +314,7 @@ void url_free(struct Url **u) */ void url_pct_encode(char *buf, size_t buflen, const char *src) { - static const char *alph = "0123456789ABCDEF"; + static const char *hex = "0123456789ABCDEF"; if (!buf) return; @@ -329,8 +329,8 @@ void url_pct_encode(char *buf, size_t buflen, const char *src) break; *buf++ = '%'; - *buf++ = alph[(*src >> 4) & 0xf]; - *buf++ = alph[*src & 0xf]; + *buf++ = hex[(*src >> 4) & 0xf]; + *buf++ = hex[*src & 0xf]; src++; buflen -= 3; continue;