]> granicus.if.org Git - neomutt/commitdiff
Use isalnum instead of isalpha when parsing unbraced environment variable
authorBrendan Cully <brendan@kublai.com>
Sat, 6 Aug 2005 19:06:36 +0000 (19:06 +0000)
committerBrendan Cully <brendan@kublai.com>
Sat, 6 Aug 2005 19:06:36 +0000 (19:06 +0000)
names, per tamo's suggestion. Closes #2022.

init.c

diff --git a/init.c b/init.c
index 0694c0a853692bf3c6240c5e5def5a2c3f52a96c..a716a802b2474e9de9578d49b19c69984f98ed6f 100644 (file)
--- 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;