diff options
Diffstat (limited to 'crypto/pem/pem_lib.c')
-rw-r--r-- | crypto/pem/pem_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c index 97b8a0d7c0..1f0f8d6c8d 100644 --- a/crypto/pem/pem_lib.c +++ b/crypto/pem/pem_lib.c @@ -722,14 +722,14 @@ static int sanitize_line(char *linebuf, int len, unsigned int flags) static const char beginstr[] = "-----BEGIN "; static const char endstr[] = "-----END "; static const char tailstr[] = "-----\n"; -#define BEGINLEN (sizeof(beginstr) - 1) -#define ENDLEN (sizeof(endstr) - 1) -#define TAILLEN (sizeof(tailstr) - 1) +#define BEGINLEN ((int)(sizeof(beginstr) - 1)) +#define ENDLEN ((int)(sizeof(endstr) - 1)) +#define TAILLEN ((int)(sizeof(tailstr) - 1)) static int get_name(BIO *bp, char **name, unsigned int flags) { char *linebuf; int ret = 0; - size_t len; + int len; /* * Need to hold trailing NUL (accounted for by BIO_gets() and the newline |