]> diplodocus.org Git - nmh/blobdiff - sbr/ruserpass.c
Escape literal leading full stop in man/new.man.
[nmh] / sbr / ruserpass.c
index 43784d528d02158c3050a90e88dfb836d613162d..2bd8d63e0362a058891e36c7d42fc0bc8711a654 100644 (file)
@@ -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;
        }