rc: fix pwrd() regression, forgot <= ' ' case from needsrcquote()... sorry :(
This commit is contained in:
parent
85bfb0e9eb
commit
538b810712
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ void
|
|||
pwrd(io *f, char *s)
|
||||
{
|
||||
char *t;
|
||||
for(t = s;*t;t++) if(*t >= 0 && strchr("`^#*[]=|\\?${}()'<>&;", *t)) break;
|
||||
for(t = s;*t;t++) if(*t >= 0 && (*t <= ' ' || strchr("`^#*[]=|\\?${}()'<>&;", *t))) break;
|
||||
if(t==s || *t)
|
||||
pquo(f, s);
|
||||
else pstr(f, s);
|
||||
|
|
Loading…
Reference in a new issue