From 37361001f46cde0dfe0e9f64c03093ae67a4426f Mon Sep 17 00:00:00 2001 From: Adam Powers Date: Tue, 17 Nov 2020 23:58:12 -0800 Subject: [PATCH] pre-fix @PatR 'SHELLERS on VMS' change --- sys/libnh/libnhmain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/libnh/libnhmain.c b/sys/libnh/libnhmain.c index 844f385d0..bbd16482f 100644 --- a/sys/libnh/libnhmain.c +++ b/sys/libnh/libnhmain.c @@ -648,11 +648,11 @@ char *name; boolean check_user_string(optstr) -char *optstr; +const char *optstr; { struct passwd *pw; int pwlen; - char *eop, *w; + const char *eop, *w; char *pwname = 0; if (optstr[0] == '*') @@ -664,7 +664,7 @@ char *optstr; if (!pwname || !*pwname) return FALSE; pwlen = (int) strlen(pwname); - eop = eos(optstr); + eop = eos((char *)optstr); w = optstr; while (w + pwlen <= eop) { if (!*w)