aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-15 13:15:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-15 13:15:14 -0700
commit0e55b2a0fd5225c810663c62912e5f93d2e63343 (patch)
tree66c12622038395095a71e30fe9bb6982370233e3 /pw.c
parent24fb6be7496bb42612ab01bca6b99fbd99b92f7b (diff)
downloadpw-0e55b2a0fd5225c810663c62912e5f93d2e63343.tar.gz
pw-0e55b2a0fd5225c810663c62912e5f93d2e63343.tar.bz2
pw-0e55b2a0fd5225c810663c62912e5f93d2e63343.zip
Fix regression: :E and :B commands not recognized.
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw.c b/pw.c
index 9802b83..ede4fdb 100644
--- a/pw.c
+++ b/pw.c
@@ -803,7 +803,7 @@ static execode execute(pwstate *pw, char *cmd, char *resbuf,
execode res = exec_failed;
char cmdbuf[16];
int cmdlen = 0;
- int ntok = sscanf(cmd + 1, "%15[a-z]%n", cmdbuf, &cmdlen);
+ int ntok = sscanf(cmd + 1, "%15[a-zA-Z]%n", cmdbuf, &cmdlen);
char *arg = cmd + 1 + cmdlen;
if (*arg == ' ')