Commit 594fc041 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

added lf to Win32 getpass_r() so that next output appears in new line.

parent 94fcb4b0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -115,6 +115,8 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
           previous one as well */
        i = i - (i>=1?2:1);
  }
  /* since echo is disabled, print a newline */
  fputs("\n", stderr);
  /* if user didn't hit ENTER, terminate buffer */
  if (i==buflen)
    buffer[buflen-1]=0;