diff options
author | Eduardo Chappa <chappa@washington.edu> | 2023-02-05 13:10:13 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2023-02-05 13:10:13 -0700 |
commit | 3d6c5540c8c2f4d01331de13e52790e5d7b6ac49 (patch) | |
tree | b5e88083aeb0b24fc3a853d3d036c3683b5ed71f | |
parent | 4085c760c54eeb9cd828c9659117dc32bf179e42 (diff) | |
download | alpine-3d6c5540c8c2f4d01331de13e52790e5d7b6ac49.tar.xz |
* Fix for a better bound check in imap/src/c-client/nntp.c submitted by
Brian Campbell.
-rw-r--r-- | imap/src/c-client/nntp.c | 2 | ||||
-rw-r--r-- | 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 ================= <HTML> <HEAD> |