*/
#include <string.h>
+#include <stdio.h>
#include "internal/ctype.h"
#include "openssl/ebcdic.h"
#ifdef CHARSET_EBCDIC
int ossl_toascii(int c)
{
- if (c < -128 || c > 256)
+ if (c < -128 || c > 256 || c == EOF)
return c;
/*
* Adjust negatively signed characters.
int ossl_fromascii(int c)
{
- if (c < -128 || c > 256)
+ if (c < -128 || c > 256 || c == EOF)
return c;
if (c < 0)
c += 256;