mirror of
https://github.com/sheumann/hush.git
synced 2025-02-25 01:29:14 +00:00
Save a few bytes in error message.
This commit is contained in:
parent
a421ba8203
commit
bec26527a1
@ -163,7 +163,7 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp)
|
|||||||
msg = "too similiar";
|
msg = "too similiar";
|
||||||
|
|
||||||
else if ( strstr(newval, pwdp->pw_name) )
|
else if ( strstr(newval, pwdp->pw_name) )
|
||||||
msg = "don't use something like your username as password";
|
msg = "username in password";
|
||||||
|
|
||||||
else {
|
else {
|
||||||
safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1);
|
safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user