--- pgp/src/language.c 2018/04/24 16:39:13 1.1.1.3 +++ pgp/src/language.c 2018/04/24 16:40:03 1.1.1.4 @@ -13,6 +13,7 @@ #include "language.h" #include "pgp.h" #include "charset.h" +#include "armor.h" #define SUBTITLES_FILE "language.txt" #define LANG_INDEXFILE "language.idx" @@ -109,7 +110,14 @@ readstr (FILE *f, char *buf, int nlabort case '\\': *p++ = c; break; case '\n': break; case '0': - d = 0; + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + d = c - '0'; while ((c = fgetc(f)) >= '0' && c <= '7') d = 8 * d + c - '0'; *p++ = d; @@ -196,8 +204,6 @@ static FILE *langf; static void init_lang(void); static int make_indexfile(char *); -word32 crcupdate(byte, word32); -void init_crc(); /* * uses 24-bit CRC function from armor.c @@ -205,11 +211,7 @@ void init_crc(); static word32 message_crc(char *s) { - word32 crc = 0; - - while (*s) - crc = crcupdate(*s++, crc); - return(crc); + return crcbytes((byte *)s, strlen(s), (word32)0); } /*