CVSROOT: /cvsroot/nmh
Module name: nmh
Branch:
Changes by: Oliver Kiddle <[EMAIL PROTECTED]> 06/01/16 09:55:24
Modified files:
. : ChangeLog
uip : scansbr.c
Log message:
multiply buffer size by MB_CUR_MAX so multi-byte chars fit
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/ChangeLog.diff?tr1=1.223&tr2=1.224&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/nmh/nmh/uip/scansbr.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
Patches:
Index: nmh/ChangeLog
diff -u nmh/ChangeLog:1.223 nmh/ChangeLog:1.224
--- nmh/ChangeLog:1.223 Sun Jan 15 02:29:38 2006
+++ nmh/ChangeLog Mon Jan 16 09:55:24 2006
@@ -1,3 +1,8 @@
+2006-01-16 Oliver Kiddle <[EMAIL PROTECTED]>
+
+ * uip/scansbr.c: multiply buffer size by MB_CUR_MAX so multi-byte
+ chars fit
+
2006-01-14 Josh Bressers <[EMAIL PROTECTED]>
* sbr/fmt_scan.c: Turn the PUTSF macro into a function capable of
Index: nmh/uip/scansbr.c
diff -u nmh/uip/scansbr.c:1.7 nmh/uip/scansbr.c:1.8
--- nmh/uip/scansbr.c:1.7 Mon Jan 2 03:17:42 2006
+++ nmh/uip/scansbr.c Mon Jan 16 09:55:24 2006
@@ -2,7 +2,7 @@
/*
* scansbr.c -- routines to help scan along...
*
- * $Id: scansbr.c,v 1.7 2006/01/02 03:17:42 bress Exp $
+ * $Id: scansbr.c,v 1.8 2006/01/16 09:55:24 opk Exp $
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
@@ -97,7 +97,7 @@
width = MAXSCANL;
}
dat[3] = slwidth = width;
- scanl = (char *) mh_xmalloc((size_t) (slwidth + 2) );
+ scanl = (char *) mh_xmalloc((size_t) MB_CUR_MAX * ((slwidth + 2) );
if (outnum)
umask(~m_gmprot());
_______________________________________________
Nmh-commits mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/nmh-commits