diff --git a/src/modules/MIME/mime.c b/src/modules/MIME/mime.c
index 9be70705b00ce2e897b7dc9f32d48c3e381374a7..3df282878cd1976e55aaf6f9ecd5b137dde3d623 100644
--- a/src/modules/MIME/mime.c
+++ b/src/modules/MIME/mime.c
@@ -1,5 +1,5 @@
 /*
- * $Id: mime.c,v 1.6 1997/04/17 16:42:43 marcus Exp $
+ * $Id: mime.c,v 1.7 1997/04/19 23:25:32 grubba Exp $
  *
  * RFC1521 functionality for Pike
  *
@@ -9,7 +9,7 @@
 #include "config.h"
 
 #include "global.h"
-RCSID("$Id: mime.c,v 1.6 1997/04/17 16:42:43 marcus Exp $");
+RCSID("$Id: mime.c,v 1.7 1997/04/19 23:25:32 grubba Exp $");
 #include "stralloc.h"
 #include "types.h"
 #include "pike_macros.h"
@@ -149,7 +149,8 @@ static void f_decode_base64( INT32 args )
     buf.s.str = NULL;
     initialize_buf( &buf );
 
-    for (src = sp[-1].u.string->str, cnt = sp[-1].u.string->len; cnt--; src++)
+    for (src = (SIGNED char *)sp[-1].u.string->str, cnt = sp[-1].u.string->len;
+	 cnt--; src++)
       if(*src>=' ' && base64rtab[*src-' ']>=0) {
 	/* 6 more bits to put into d */
 	if((d=(d<<6)|base64rtab[*src-' '])>=0x1000000) {
@@ -287,7 +288,8 @@ static void f_decode_qp( INT32 args )
     buf.s.str=NULL;
     initialize_buf(&buf);
 
-    for (src = sp[-1].u.string->str, cnt = sp[-1].u.string->len; cnt--; src++)
+    for (src = (SIGNED char *)sp[-1].u.string->str, cnt = sp[-1].u.string->len;
+	 cnt--; src++)
       if (*src == '=') {
 	/* Encoded data */
 	if (cnt > 0 && (src[1] == 10 || src[1] == 13)) {