Re: Debian Bug#308296: mc segfaults on charset encoding change
- From: Roland Illig <roland illig gmx de>
- To: Ludovic Drolez <ldrolez debian org>
- Cc: 308296 bugs debian org, mc-devel gnome org, SteX <stefano melchior fastwebnet it>
- Subject: Re: Debian Bug#308296: mc segfaults on charset encoding change
- Date: Wed, 11 May 2005 23:48:15 +0200
Ludovic Drolez wrote:
- improve 33_mc-iconv-error.patch ?
- or remove it ?
Replace it with the appended patch.
Roland
Index: charsets.c
===================================================================
RCS file: /cvsroot/mc/mc/src/charsets.c,v
retrieving revision 1.20
diff -u -p -r1.20 charsets.c
--- charsets.c 30 Aug 2004 10:38:00 -0000 1.20
+++ charsets.c 11 May 2005 21:47:25 -0000
@@ -151,7 +151,7 @@ translate_character (iconv_t cd, char c)
obuflen = 4;
count = iconv (cd, &ibuf, &ibuflen, &obuf, &obuflen);
- if (count >= 0 && ibuflen == 0)
+ if (count != ((size_t) -1) && ibuflen == 0)
return outbuf[0];
return UNKNCHAR;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]