From: Brendan Cully Date: Sat, 6 Aug 2005 19:06:36 +0000 (+0000) Subject: Use isalnum instead of isalpha when parsing unbraced environment variable X-Git-Tag: mutt-1-5-10-rel~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59504247b2576b0145c228b71c68ac23950825c5;p=mutt Use isalnum instead of isalpha when parsing unbraced environment variable names, per tamo's suggestion. Closes #2022. --- diff --git a/init.c b/init.c index 0694c0a8..a716a802 100644 --- a/init.c +++ b/init.c @@ -272,7 +272,7 @@ int mutt_extract_token (BUFFER *dest, BUFFER *tok, int flags) } else { - for (pc = tok->dptr; isalpha ((unsigned char) *pc) || *pc == '_'; pc++) + for (pc = tok->dptr; isalnum ((unsigned char) *pc) || *pc == '_'; pc++) ; var = mutt_substrdup (tok->dptr, pc); tok->dptr = pc;