]> granicus.if.org Git - mutt/commitdiff
BSD/OS portability fix from Edmund Grimley Evans. #758.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 5 Sep 2001 12:09:44 +0000 (12:09 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 5 Sep 2001 12:09:44 +0000 (12:09 +0000)
sendlib.c

index faa7f164a1f3378325fce34bd95a83a142939262..26a2fa4136412b823860b3a77ffc7214f1ba6420 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -729,7 +729,8 @@ static size_t convert_file_to (FILE *file, const char *fromcode,
        n = iconv (cd[i], (ibl || ubl) ? &ub : 0, &ubl, &ob, &obl);
        if (n == (size_t)(-1))
        {
-         assert (errno == E2BIG || (BUGGY_ICONV && errno == EILSEQ));
+         assert (errno == E2BIG ||
+                 (BUGGY_ICONV && (errno == EILSEQ || errno == ENOENT)));
          score[i] = (size_t)(-1);
        }
        else