*** mewencode.c.orig	Fri Oct  6 13:20:38 1995
--- mewencode.c	Fri Oct  6 13:34:11 1995
***************
*** 30,36 ****
    ****************************************************************
  */
  
! static char version_message[] = "mewencode version 0.06 10/05/95 Kazuhiko Yamamoto";
  
  #include "getopt.h"
  #include <stdio.h>
--- 30,36 ----
    ****************************************************************
  */
  
! static char version_message[] = "mewencode version 0.07 10/06/95 Kazuhiko Yamamoto";
  
  #include "getopt.h"
  #include <stdio.h>
***************
*** 479,494 ****
  	FILE *stream;
  {
      int a1, a2;
!     static int error = OFF;
  
      if (((a1 = base128[c1]) != OOB) && ((a2 = base128[c2]) != OOB)) {
! 	putc(((c1 << 4) | c2), stream);
  	return (SUCCESS);
      } else {
! 	if (error == OFF) { /* warn just once */
              fprintf(stderr, "Error: can't translate hex to character: %c%c\n",
  		    c1, c2);
! 	    error = ON;
          }
  	return (ERROR);	
      }
--- 479,494 ----
  	FILE *stream;
  {
      int a1, a2;
!     static int warned = OFF;
  
      if (((a1 = base128[c1]) != OOB) && ((a2 = base128[c2]) != OOB)) {
! 	putc(((a1 << 4) | a2), stream);
  	return (SUCCESS);
      } else {
! 	if (warned == OFF) { /* warn just once */
              fprintf(stderr, "Error: can't translate hex to character: %c%c\n",
  		    c1, c2);
! 	    warned = ON;
          }
  	return (ERROR);	
      }
***************
*** 520,529 ****
  	    }
  	    if (puthexchar(c2, c3, outfile) == ERROR) {
  		putc(EQ, outfile);
! 		if ((c1 = c2) == EOF) return;
  		ungetc(c3, infile);
  		goto skipgetc;
! 	    }
  	}
  	putc(c1, outfile);
      }
--- 520,530 ----
  	    }
  	    if (puthexchar(c2, c3, outfile) == ERROR) {
  		putc(EQ, outfile);
! 		if ((c1 = c2) == EOF) exit(ERROR);
  		ungetc(c3, infile);
  		goto skipgetc;
! 	    } else
! 	       continue;
  	}
  	putc(c1, outfile);
      }
