Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libcurses/slave tests/libcurses: fix scanf paramet...
details: https://anonhg.NetBSD.org/src/rev/838be7003a33
branches: trunk
changeset: 951973:838be7003a33
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Feb 09 20:22:11 2021 +0000
description:
tests/libcurses: fix scanf parameter for unsigned int
diffstat:
tests/lib/libcurses/slave/curses_commands.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r c7fac2915757 -r 838be7003a33 tests/lib/libcurses/slave/curses_commands.c
--- a/tests/lib/libcurses/slave/curses_commands.c Tue Feb 09 17:44:01 2021 +0000
+++ b/tests/lib/libcurses/slave/curses_commands.c Tue Feb 09 20:22:11 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: curses_commands.c,v 1.12 2021/02/08 19:15:21 rillig Exp $ */
+/* $NetBSD: curses_commands.c,v 1.13 2021/02/09 20:22:11 rillig Exp $ */
/*-
* Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -54,7 +54,7 @@
int
set_uint(char *arg, unsigned int *x)
{
- if (sscanf(arg, "%d", x) == 0) {
+ if (sscanf(arg, "%u", x) == 0) {
report_count(1);
report_error("BAD ARGUMENT");
return -1;
Home |
Main Index |
Thread Index |
Old Index