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/be03d91166a5
branches: trunk
changeset: 984149:be03d91166a5
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 99e6534a743c -r be03d91166a5 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 @@
}
#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