Module Name:    src
Committed By:   rin
Date:           Sun Nov 12 15:22:09 UTC 2017

Modified Files:
        src/external/bsd/nvi/dist/ex: ex_cscope.c

Log Message:
Add missing encoding conversion before printing it.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/nvi/dist/ex/ex_cscope.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/nvi/dist/ex/ex_cscope.c
diff -u src/external/bsd/nvi/dist/ex/ex_cscope.c:1.7 src/external/bsd/nvi/dist/ex/ex_cscope.c:1.8
--- src/external/bsd/nvi/dist/ex/ex_cscope.c:1.7	Tue Aug 26 15:19:38 2014
+++ src/external/bsd/nvi/dist/ex/ex_cscope.c	Sun Nov 12 15:22:09 2017
@@ -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 @@ cscope_add(SCR *sp, EXCMD *cmdp, const C
 	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);
 	}

Reply via email to