aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Burago <ib@iburago.org>2022-07-29 22:53:14 +0800
committerDan Cross <crossd@gmail.com>2022-09-07 09:32:08 -0400
commitc57b71966ec2b3342a3a4da515944cabf268609f (patch)
tree3f2b2195831428e6ad6a32378f5a77e82026a7e2 /src
parent29fae81fb76c854f41b493ab6c8a67e2ae834a58 (diff)
acme: accept paths with spaces in the 'name' ctl message
As it is allowed to use spaces in file names set interactively through the tag since 7b1c85f, do not reject names with spaces in the 'name' ctl message either. Fixes #559.
Diffstat (limited to 'src')
-rw-r--r--src/cmd/acme/xfid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/acme/xfid.c b/src/cmd/acme/xfid.c
index e7d9f4cb..dc7bf75b 100644
--- a/src/cmd/acme/xfid.c
+++ b/src/cmd/acme/xfid.c
@@ -691,7 +691,7 @@ xfidctlwrite(Xfid *x, Window *w)
break;
}
for(i=0; i<nr; i++)
- if(r[i] <= ' '){
+ if(r[i] < ' '){
err = "bad character in file name";
goto out;
}