]> diplodocus.org Git - nmh/blobdiff - sbr/ruserpass.c
Added check of -fcc with no fcc in components.
[nmh] / sbr / ruserpass.c
index 43784d528d02158c3050a90e88dfb836d613162d..9784e89e0f588d29cebcf561e86f04f43cf5684c 100644 (file)
@@ -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;
        }