snprintf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9509 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 - 2000 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1999 - 2001 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -246,7 +246,7 @@ verify_unix(struct passwd *su)
|
|||||||
char *pw;
|
char *pw;
|
||||||
int r;
|
int r;
|
||||||
if(su->pw_passwd != NULL && *su->pw_passwd != '\0') {
|
if(su->pw_passwd != NULL && *su->pw_passwd != '\0') {
|
||||||
sprintf(prompt, "%s's password: ", su->pw_name);
|
snprintf(prompt, sizeof(prompt), "%s's password: ", su->pw_name);
|
||||||
r = des_read_pw_string(pw_buf, sizeof(pw_buf), prompt, 0);
|
r = des_read_pw_string(pw_buf, sizeof(pw_buf), prompt, 0);
|
||||||
if(r != 0)
|
if(r != 0)
|
||||||
exit(0);
|
exit(0);
|
||||||
|
Reference in New Issue
Block a user