]> diplodocus.org Git - nmh/blobdiff - sbr/ruserpass.c
Replaced docs/COMPLETION-BASH with etc/bash_completions_nmh.
[nmh] / sbr / ruserpass.c
index 43784d5..1d946fa 100644 (file)
@@ -147,7 +147,7 @@ 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');