~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to pico/osdep/msdlg.c

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2008-09-23 12:17:56 UTC
  • mfrom: (2.1.8 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080923121756-6u4x8bwq89qlzt32
Tags: 2.00+dfsg-2
Update to package description: note that Alpine is no longer in
alpha. (Closes: #499640)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#if     !defined(lint) && !defined(DOS)
2
 
static char rcsid[] = "$Id: msdlg.c 933 2008-02-22 23:52:28Z hubert@u.washington.edu $";
 
2
static char rcsid[] = "$Id: msdlg.c 1014 2008-03-26 17:27:45Z hubert@u.washington.edu $";
3
3
#endif
4
4
 
5
5
/*
82
82
    LPTSTR      string;                 /* Resulting string. */
83
83
    int         strlen;                 /* Length of buffer. */
84
84
    int         append;                 /* Append to existing string. */
85
 
    int         passwd;                 /* Passwd, don't echo. */
 
85
    int         passwd;                 /* Passwd, don't echo (1 use asterisk, 10 space). */
86
86
    unsigned    flags;                  /* other flags. */
87
87
    int         dflt;
88
88
    int         cancel;
292
292
        SetDlgItemText(hDlg, IDC_RESPONCE, gOEInfo.string);
293
293
 
294
294
        SendDlgItemMessage (hDlg, IDC_RESPONCE, EM_SETPASSWORDCHAR,
295
 
                gOEInfo.passwd ? '*' : 0, 0L);
 
295
                (gOEInfo.passwd == 1) ? '*' : gOEInfo.passwd ? ' ' : 0, 0L);
296
296
        SendDlgItemMessage (hDlg, IDC_RESPONCE, EM_LIMITTEXT, 
297
297
                gOEInfo.strlen - 1, 0L);
298
298
        l = (long) lstrlen(gOEInfo.string);