Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Fix printf format for size_t



details:   https://anonhg.NetBSD.org/src/rev/86297cad032f
branches:  trunk
changeset: 379875:86297cad032f
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jun 24 15:41:25 2021 +0000

description:
Fix printf format for size_t

diffstat:

 lib/libcurses/slk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f396be5eac4f -r 86297cad032f lib/libcurses/slk.c
--- a/lib/libcurses/slk.c       Thu Jun 24 09:17:53 2021 +0000
+++ b/lib/libcurses/slk.c       Thu Jun 24 15:41:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: slk.c,v 1.10 2021/06/24 05:53:05 blymn Exp $   */
+/*     $NetBSD: slk.c,v 1.11 2021/06/24 15:41:25 martin Exp $  */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: slk.c,v 1.10 2021/06/24 05:53:05 blymn Exp $");
+__RCSID("$NetBSD: slk.c,v 1.11 2021/06/24 15:41:25 martin Exp $");
 #endif                         /* not lint */
 
 #include <ctype.h>
@@ -568,7 +568,7 @@ static int
        }
 
 #ifdef DEBUG
-       __CTRACE(__CTRACE_INPUT, "__slk_wset: wcsrtombs %ld\n", len);
+       __CTRACE(__CTRACE_INPUT, "__slk_wset: wcsrtombs %zu\n", len);
 #endif
        len++; /* We need to store the NULL character. */
        if ((str = malloc(len)) == NULL)



Home | Main Index | Thread Index | Old Index