From 3d6c5540c8c2f4d01331de13e52790e5d7b6ac49 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 5 Feb 2023 13:10:13 -0700 Subject: * Fix for a better bound check in imap/src/c-client/nntp.c submitted by Brian Campbell. --- imap/src/c-client/nntp.c | 2 +- pith/pine.hlp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imap/src/c-client/nntp.c b/imap/src/c-client/nntp.c index cc949118..61dd1bd2 100644 --- a/imap/src/c-client/nntp.c +++ b/imap/src/c-client/nntp.c @@ -335,7 +335,6 @@ void nntp_list (MAILSTREAM *stream,char *ref,char *pat) { MAILSTREAM *st = stream; char *s,*t,*lcl,pattern[MAILTMPLEN],name[MAILTMPLEN],wildmat[MAILTMPLEN]; - int showuppers = pat[strlen (pat) - 1] == '%'; if (!*pat) { if (nntp_canonicalize (ref,"*",pattern,NIL)) { /* tie off name at root */ @@ -351,6 +350,7 @@ void nntp_list (MAILSTREAM *stream,char *ref,char *pat) ((nntp_send (LOCAL->nntpstream,"LIST ACTIVE", wildmat[0] ? wildmat : NIL) == NNTPGLIST) || (nntp_send (LOCAL->nntpstream,"LIST",NIL) == NNTPGLIST))) { + int showuppers = pat[strlen (pat) - 1] == '%'; /* namespace format name? */ if (*(lcl = strchr (strcpy (name,pattern),'}') + 1) == '#') lcl += 6; /* process data until we see final dot */ diff --git a/pith/pine.hlp b/pith/pine.hlp index 73b5d7c4..ec91b50f 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -147,7 +147,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 670 2023-01-11 09:49:34 +Alpine Commit 672 2023-02-05 13:10:09 ============= h_news ================= -- cgit v1.2.3-70-g09d2