diff options
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sshconnect.c b/sshconnect.c index 356ec79f0..96b91ce1a 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect.c,v 1.271 2016/01/14 22:56:56 markus Exp $ */ | 1 | /* $OpenBSD: sshconnect.c,v 1.272 2016/09/12 01:22:38 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -15,7 +15,6 @@ | |||
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | 17 | ||
18 | #include <sys/param.h> /* roundup */ | ||
19 | #include <sys/types.h> | 18 | #include <sys/types.h> |
20 | #include <sys/wait.h> | 19 | #include <sys/wait.h> |
21 | #include <sys/stat.h> | 20 | #include <sys/stat.h> |
@@ -1403,7 +1402,7 @@ ssh_put_password(char *password) | |||
1403 | packet_put_cstring(password); | 1402 | packet_put_cstring(password); |
1404 | return; | 1403 | return; |
1405 | } | 1404 | } |
1406 | size = roundup(strlen(password) + 1, 32); | 1405 | size = ROUNDUP(strlen(password) + 1, 32); |
1407 | padded = xcalloc(1, size); | 1406 | padded = xcalloc(1, size); |
1408 | strlcpy(padded, password, size); | 1407 | strlcpy(padded, password, size); |
1409 | packet_put_string(padded, size); | 1408 | packet_put_string(padded, size); |