Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/dist Make sure to cast arguments of ISFOO a...
details: https://anonhg.NetBSD.org/src/rev/c3c74b5c878a
branches: trunk
changeset: 357489:c3c74b5c878a
user: rin <rin%NetBSD.org@localhost>
date: Mon Nov 13 01:40:37 2017 +0000
description:
Make sure to cast arguments of ISFOO and TOFOO macros into UCHAR_T.
diffstat:
external/bsd/nvi/dist/common/cut.h | 4 ++--
external/bsd/nvi/dist/ex/ex.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 4c5872212398 -r c3c74b5c878a external/bsd/nvi/dist/common/cut.h
--- a/external/bsd/nvi/dist/common/cut.h Mon Nov 13 01:37:48 2017 +0000
+++ b/external/bsd/nvi/dist/common/cut.h Mon Nov 13 01:40:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cut.h,v 1.3 2013/11/25 22:43:46 christos Exp $ */
+/* $NetBSD: cut.h,v 1.4 2017/11/13 01:40:37 rin Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -66,7 +66,7 @@
*/
#define CBNAME(sp, cbp, nch) { \
ARG_CHAR_T L__name; \
- L__name = ISUPPER(nch) ? TOLOWER(nch) : (nch); \
+ L__name = ISUPPER((UCHAR_T)nch) ? TOLOWER((UCHAR_T)nch) : (nch);\
for (cbp = sp->wp->cutq.lh_first; \
cbp != NULL; cbp = cbp->q.le_next) \
if (cbp->name == L__name) \
diff -r 4c5872212398 -r c3c74b5c878a external/bsd/nvi/dist/ex/ex.c
--- a/external/bsd/nvi/dist/ex/ex.c Mon Nov 13 01:37:48 2017 +0000
+++ b/external/bsd/nvi/dist/ex/ex.c Mon Nov 13 01:40:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ex.c,v 1.5 2017/11/10 14:35:25 rin Exp $ */
+/* $NetBSD: ex.c,v 1.6 2017/11/13 01:40:37 rin Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -16,7 +16,7 @@
static const char sccsid[] = "Id: ex.c,v 10.75 2004/03/16 14:13:35 skimo Exp (Berkeley) Date: 2004/03/16 14:13:35 ";
#endif /* not lint */
#else
-__RCSID("$NetBSD: ex.c,v 1.5 2017/11/10 14:35:25 rin Exp $");
+__RCSID("$NetBSD: ex.c,v 1.6 2017/11/13 01:40:37 rin Exp $");
#endif
#include <sys/types.h>
@@ -441,7 +441,7 @@
break;
case 'E': case 'F': case 'N': case 'P': case 'T': case 'V':
newscreen = 1;
- p[0] = TOLOWER(p[0]);
+ p[0] = TOLOWER((UCHAR_T)p[0]);
break;
}
Home |
Main Index |
Thread Index |
Old Index