- markus@cvs.openbsd.org 2002/01/11 23:26:30
[auth-skey.c] use snprintf; mouring@
This commit is contained in:
parent
209ee4e368
commit
73f18346bc
|
@ -146,6 +146,9 @@
|
||||||
- markus@cvs.openbsd.org 2002/01/11 23:02:51
|
- markus@cvs.openbsd.org 2002/01/11 23:02:51
|
||||||
[auth2-chall.c]
|
[auth2-chall.c]
|
||||||
use snprintf; mouring@
|
use snprintf; mouring@
|
||||||
|
- markus@cvs.openbsd.org 2002/01/11 23:26:30
|
||||||
|
[auth-skey.c]
|
||||||
|
use snprintf; mouring@
|
||||||
|
|
||||||
|
|
||||||
20020121
|
20020121
|
||||||
|
@ -7294,4 +7297,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1764 2002/01/22 12:25:08 djm Exp $
|
$Id: ChangeLog,v 1.1765 2002/01/22 12:25:30 djm Exp $
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: auth-skey.c,v 1.14 2002/01/11 20:14:11 markus Exp $");
|
RCSID("$OpenBSD: auth-skey.c,v 1.15 2002/01/11 23:26:30 markus Exp $");
|
||||||
|
|
||||||
#ifdef SKEY
|
#ifdef SKEY
|
||||||
|
|
||||||
|
@ -60,8 +60,7 @@ skey_query(void *ctx, char **name, char **infotxt,
|
||||||
|
|
||||||
len = strlen(challenge) + strlen(PROMPT) + 1;
|
len = strlen(challenge) + strlen(PROMPT) + 1;
|
||||||
p = xmalloc(len);
|
p = xmalloc(len);
|
||||||
strlcpy(p, challenge, len);
|
snprintf(p, len, "%s%s", challenge, PROMPT);
|
||||||
strlcat(p, PROMPT, len);
|
|
||||||
(*prompts)[0] = p;
|
(*prompts)[0] = p;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue