]> granicus.if.org Git - sudo/commitdiff
added flush for hpux
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 2 Dec 1993 00:32:44 +0000 (00:32 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 2 Dec 1993 00:32:44 +0000 (00:32 +0000)
getpass.c

index 64da3821f3d3057621a91ce11b3f3213ccf0bca3..25b12431e841741c2558f3be725901d73b5bf106 100644 (file)
--- a/getpass.c
+++ b/getpass.c
@@ -78,6 +78,9 @@ char *
 #endif
 
     (void) fprintf(outfp, "%s", prompt);
+#ifdef hpux
+    (void) fflush(outfp);
+#endif
     rewind(outfp);             /* implied flush */
     for (p = buf; (ch = getc(fp)) != EOF && ch != '\n';)
        if (p < buf + PASSWD_LEN)