summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-03-05 17:25:44 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-03-05 17:25:44 +0100
commitf040eed489c3b243079e906df3464f99ce64a598 (patch)
tree369f5ac17f56852e0548f36106c6d7c85e2ba529 /tools.c
parent620eb8150bd5cf1605c45bfbef018b716e50c544 (diff)
downloadvdr-f040eed489c3b243079e906df3464f99ce64a598.tar.gz
vdr-f040eed489c3b243079e906df3464f99ce64a598.tar.bz2
Fixed a signed character used as index in cBase64Encoder::NextLine()
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.c b/tools.c
index e5bb40a9..70ccb0e3 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.144 2008/02/29 13:16:39 kls Exp $
+ * $Id: tools.c 1.145 2008/03/05 17:23:47 kls Exp $
*/
#include "tools.h"
@@ -1102,7 +1102,7 @@ const char *cBase64Encoder::NextLine(void)
int r = 0;
while (i < length && r < maxResult - 3) {
result[r++] = b64[(data[i] >> 2) & 0x3F];
- char c = (data[i] << 4) & 0x3F;
+ uchar c = (data[i] << 4) & 0x3F;
if (++i < length)
c |= (data[i] >> 4) & 0x0F;
result[r++] = b64[c];