]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (dtucker) [loginrec.c] Cast to the types specfied in the format
authorDarren Tucker <dtucker@zip.com.au>
Fri, 17 Jan 2014 01:23:23 +0000 (12:23 +1100)
committerDarren Tucker <dtucker@zip.com.au>
Fri, 17 Jan 2014 01:23:23 +0000 (12:23 +1100)
    specification to prevent warnings.

ChangeLog
loginrec.c

index ada012fb86d6bd44dede917d2f41d763327c00ed..14098dbcf6981030f9ca9382d662fad5fd586871 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 8844db5402fe4f02828b17a80a981d7abccfc275..4219b9aef3de6c93e761afdca1fe976e2f8322be 100644 (file)
@@ -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;
        }