Hi,
In revision 1.41 of usr.bin/vi/common/exf.c the msg_cat function was
removed but it looks like an extraneous argument from one of the removed
function calls didn't end up being removed. Found while compiling with
clang(1).

Index: common/exf.c
===================================================================
RCS file: /cvs/src/usr.bin/vi/common/exf.c,v
retrieving revision 1.45
diff -u -p -r1.45 exf.c
--- common/exf.c        18 Apr 2017 01:45:35 -0000      1.45
+++ common/exf.c        25 Apr 2017 20:35:49 -0000
@@ -909,7 +909,7 @@ file_write(SCR *sp, MARK *fm, MARK *tm, 
        case OLDFILE:
                msgstr = LF_ISSET(FS_APPEND) ?
                    "%s: appended: %lu lines, %lu characters" :
-                   "%s: %lu lines, %lu characters", NULL;
+                   "%s: %lu lines, %lu characters";
                len = snprintf(buf, sizeof(buf), msgstr, p, nlno, nch);
                if (len >= sizeof(buf))
                        len = sizeof(buf) - 1;

Reply via email to