From e0ae569c01e6aa93463d18aa6531f507943d7614 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 2 Mar 1999 22:13:29 +0000 Subject: [PATCH] Some small fixes from Vikas. --- charset.c | 6 +++--- curs_main.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charset.c b/charset.c index 1700a253..e4fa80a8 100644 --- a/charset.c +++ b/charset.c @@ -277,7 +277,7 @@ static int parse_charmap_line (char *line, CHARMAP * m, CHARDESC ** descrp) return CL_END; } - for (t = line; *t && isspace (*t); t++) + for (t = line; *t && isspace ((unsigned char) *t); t++) ; if (*t++ != '<') @@ -302,10 +302,10 @@ static int parse_charmap_line (char *line, CHARMAP * m, CHARDESC ** descrp) descr->symbol = safe_strdup (t); fix_symbol (descr->symbol, m); - for (t = u; *t && isspace (*t); t++) + for (t = u; *t && isspace ((unsigned char) *t); t++) ; - for (u = t; *u && !isspace (*u); u++) + for (u = t; *u && !isspace ((unsigned char) *u); u++) ; *u++ = 0; diff --git a/curs_main.c b/curs_main.c index 0eda1a79..e6721e90 100644 --- a/curs_main.c +++ b/curs_main.c @@ -780,7 +780,7 @@ int mutt_index_menu (void) /* calculate the number of messages _above_ the cursor, * so we can keep the cursor on the current message */ - for (j = 0; j < menu->current; j++) + for (j = 0; j <= menu->current; j++) { if (Context->hdrs[Context->v2r[j]]->deleted) dcount++; -- 2.40.0