pre-fix @PatR 'SHELLERS on VMS' change

This commit is contained in:
Adam Powers
2020-11-17 23:58:12 -08:00
parent c021293983
commit 37361001f4
+3 -3
View File
@@ -648,11 +648,11 @@ char *name;
boolean boolean
check_user_string(optstr) check_user_string(optstr)
char *optstr; const char *optstr;
{ {
struct passwd *pw; struct passwd *pw;
int pwlen; int pwlen;
char *eop, *w; const char *eop, *w;
char *pwname = 0; char *pwname = 0;
if (optstr[0] == '*') if (optstr[0] == '*')
@@ -664,7 +664,7 @@ char *optstr;
if (!pwname || !*pwname) if (!pwname || !*pwname)
return FALSE; return FALSE;
pwlen = (int) strlen(pwname); pwlen = (int) strlen(pwname);
eop = eos(optstr); eop = eos((char *)optstr);
w = optstr; w = optstr;
while (w + pwlen <= eop) { while (w + pwlen <= eop) {
if (!*w) if (!*w)