mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
Fix for toupper('I') != 'i'
This commit is contained in:
parent
ff170c94f1
commit
01fe1dd2a9
22 changed files with 156 additions and 47 deletions
|
@ -649,9 +649,9 @@ radix64_read( armor_filter_context_t *afx, IOBUF a, size_t *retn,
|
|||
if( isxdigit(cc1) && isxdigit(cc2)
|
||||
&& strchr( "=\n\r\t ", cc3 )) {
|
||||
/* well it seems to be the case - adjust */
|
||||
c = isdigit(cc1)? (cc1 - '0'): (toupper(cc1)-'A'+10);
|
||||
c = isdigit(cc1)? (cc1 - '0'): (ascii_toupper(cc1)-'A'+10);
|
||||
c <<= 4;
|
||||
c |= isdigit(cc2)? (cc2 - '0'): (toupper(cc2)-'A'+10);
|
||||
c |= isdigit(cc2)? (cc2 - '0'): (ascii_toupper(cc2)-'A'+10);
|
||||
afx->buffer_pos += 2;
|
||||
afx->qp_detected = 1;
|
||||
goto again;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue