mirror of
https://github.com/tmux/tmux.git
synced 2025-10-26 12:27:15 +00:00
Sync OpenBSD patchset 304:
Use "Password:" with no space for password prompts and don't display a *s for the password, like pretty much everything else. From martynas@ with minor tweaks by me.
This commit is contained in:
4
tmux.c
4
tmux.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.c,v 1.166 2009-09-02 00:54:00 tcunha Exp $ */
|
||||
/* $Id: tmux.c,v 1.167 2009-09-02 00:55:49 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@@ -223,7 +223,7 @@ prepare_unlock(enum msgtype *msg, void **buf, size_t *len, int argc)
|
||||
return (-1);
|
||||
}
|
||||
|
||||
if ((pass = getpass("Password: ")) == NULL)
|
||||
if ((pass = getpass("Password:")) == NULL)
|
||||
return (-1);
|
||||
|
||||
if (strlen(pass) >= sizeof unlockdata.pass) {
|
||||
|
||||
Reference in New Issue
Block a user