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/ex Add missing encoding conversion bef...



details:   https://anonhg.NetBSD.org/src/rev/28d887bd6378
branches:  trunk
changeset: 827772:28d887bd6378
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Nov 12 15:22:09 2017 +0000

description:
Add missing encoding conversion before printing it.

diffstat:

 external/bsd/nvi/dist/ex/ex_cscope.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 8aa3a77dea73 -r 28d887bd6378 external/bsd/nvi/dist/ex/ex_cscope.c
--- a/external/bsd/nvi/dist/ex/ex_cscope.c      Sun Nov 12 08:24:37 2017 +0000
+++ b/external/bsd/nvi/dist/ex/ex_cscope.c      Sun Nov 12 15:22:09 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ex_cscope.c,v 1.7 2014/08/26 15:19:38 aymeric Exp $ */
+/*     $NetBSD: ex_cscope.c,v 1.8 2017/11/12 15:22:09 rin Exp $ */
 /*-
  * Copyright (c) 1994, 1996
  *     Rob Mayoff.  All rights reserved.
@@ -16,7 +16,7 @@
 static const char sccsid[] = "Id: ex_cscope.c,v 10.21 2003/11/05 17:11:54 skimo Exp  (Berkeley) Date: 2003/11/05 17:11:54 ";
 #endif /* not lint */
 #else
-__RCSID("$NetBSD: ex_cscope.c,v 1.7 2014/08/26 15:19:38 aymeric Exp $");
+__RCSID("$NetBSD: ex_cscope.c,v 1.8 2017/11/12 15:22:09 rin Exp $");
 #endif
 
 #include <sys/param.h>
@@ -232,6 +232,7 @@
        if (cmdp->argc == cur_argc + 1)
                dname = cmdp->argv[cur_argc]->bp;
        else {
+               INT2CHAR(sp, dname, STRLEN(dname)+1, np, nlen);
                ex_emsg(sp, np, EXM_FILECOUNT);
                return (1);
        }



Home | Main Index | Thread Index | Old Index