зеркало из https://github.com/Azure/sonic-openssh.git
- (dtucker) [loginrec.c] Cast to the types specfied in the format
specification to prevent warnings.
This commit is contained in:
Родитель
c3d483f9a8
Коммит
1c4a011e9c
|
@ -4,6 +4,8 @@
|
|||
if the toolchain supports them, but there is a configure-time knob
|
||||
(--without-hardening) to disable them if necessary. ok djm@
|
||||
- (djm) [sftp-client.c] signed/unsigned comparison fix
|
||||
- (dtucker) [loginrec.c] Cast to the types specfied in the format
|
||||
specification to prevent warnings.
|
||||
|
||||
20140118
|
||||
- (djm) OpenBSD CVS Sync
|
||||
|
|
|
@ -313,7 +313,8 @@ login_get_lastlog(struct logininfo *li, const uid_t uid)
|
|||
if (strlcpy(li->username, pw->pw_name, sizeof(li->username)) >=
|
||||
sizeof(li->username)) {
|
||||
error("%s: username too long (%lu > max %lu)", __func__,
|
||||
strlen(pw->pw_name), sizeof(li->username) - 1);
|
||||
(unsigned long)strlen(pw->pw_name),
|
||||
(unsigned long)sizeof(li->username) - 1);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче