projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return type of (*done)() changed to void. default_done() replaced by
[mmh]
/
uip
/
scansbr.c
diff --git
a/uip/scansbr.c
b/uip/scansbr.c
index
b178e75
..
1b6a0ed
100644
(file)
--- a/
uip/scansbr.c
+++ b/
uip/scansbr.c
@@
-74,7
+74,8
@@
scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg,
int unseen, char *folder, long size, int noisy)
{
int i, compnum, encrypted, state;
int unseen, char *folder, long size, int noisy)
{
int i, compnum, encrypted, state;
- char *cp, *tmpbuf, **nxtbuf;
+ unsigned char *cp, *tmpbuf;
+ char **nxtbuf;
char *saved_c_text;
struct comp *cptr;
struct comp **savecomp;
char *saved_c_text;
struct comp *cptr;
struct comp **savecomp;
@@
-97,7
+98,7
@@
scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg,
width = MAXSCANL;
}
dat[3] = slwidth = width;
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());
if (outnum)
umask(~m_gmprot());
@@
-203,7
+204,7
@@
scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg,
*/
if ((cptr = wantcomp[CHASH(name)])) {
do {
*/
if ((cptr = wantcomp[CHASH(name)])) {
do {
- if (!strcasecmp(name, cptr->c_name)) {
+ if (!mh_strcasecmp(name, cptr->c_name)) {
if (! cptr->c_text) {
cptr->c_text = tmpbuf;
for (cp = tmpbuf + strlen (tmpbuf) - 1;
if (! cptr->c_text) {
cptr->c_text = tmpbuf;
for (cp = tmpbuf + strlen (tmpbuf) - 1;