dovecot-2.0: hex2dec(): Allow data to contain also lowercase hex...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Nov 21 23:28:33 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/719f39116494
changeset: 12987:719f39116494
user: Timo Sirainen <tss at iki.fi>
date: Mon Nov 21 23:26:18 2011 +0200
description:
hex2dec(): Allow data to contain also lowercase hex characters.
diffstat:
src/lib/hex-dec.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r a28757b3f97a -r 719f39116494 src/lib/hex-dec.c
--- a/src/lib/hex-dec.c Fri Nov 18 22:07:16 2011 +0200
+++ b/src/lib/hex-dec.c Mon Nov 21 23:26:18 2011 +0200
@@ -28,6 +28,8 @@
value += data[i]-'0';
else if (data[i] >= 'A' && data[i] <= 'F')
value += data[i]-'A' + 10;
+ else if (data[i] >= 'a' && data[i] <= 'f')
+ value += data[i]-'a' + 10;
else
return 0;
}
More information about the dovecot-cvs
mailing list