summarylogtreecommitdiffstats
path: root/rtfreader-hex.diff
blob: 0862ba5194437158d638ae4876f5ada299d90ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- rtfreadr.c
+++ rtfreadr.c
@@ -107,13 +107,13 @@
                         {
                             if (ch < 'a' || ch > 'f')
                                 return ecInvalidHex;
-                            b += (char) ch - 'a';
+                            b += (char) ch - 'a'+10;
                         }
                         else
                         {
                             if (ch < 'A' || ch > 'F')
                                 return ecInvalidHex;
-                            b += (char) ch - 'A';
+                            b += (char) ch - 'A'+10;
                         }
                     }
                     cNibble--;