]> diplodocus.org Git - nmh/blobdiff - sbr/ruserpass.c
test-nocreate: Don't use run_test and run_prog together.
[nmh] / sbr / ruserpass.c
index 43784d528d02158c3050a90e88dfb836d613162d..1d946fa2008b7d818aa9a152a0c319bbb9dab1aa 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');