X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ab8d647663ca0c59d6aaf3870d99edeea3a27a6c..9322ba2854211794c27fae9468768b80b767c211:/sbr/ruserpass.c diff --git a/sbr/ruserpass.c b/sbr/ruserpass.c index 43784d52..2bd8d63e 100644 --- a/sbr/ruserpass.c +++ b/sbr/ruserpass.c @@ -80,7 +80,7 @@ ruserpass(const char *host, char **aname, char **apass, int flags) switch(t) { case DEFAULT: usedefault = 1; - /* FALL THROUGH */ + /* FALLTHRU */ case MACH: if (!usedefault) { @@ -147,10 +147,10 @@ ruserpass(const char *host, char **aname, char **apass, int flags) } printf("Name (%s:%s): ", host, myname); - if (fgets(tmp, sizeof(tmp) - 1, stdin) == NULL) { + if (fgets(tmp, sizeof tmp, stdin) == NULL) { advise ("tmp", "fgets"); } - TrimSuffixC(tmp, '\n'); + trim_suffix_c(tmp, '\n'); if (*tmp != '\0' || myname == NULL) { myname = tmp; }