From 7990f5b455934e1e33c045a0fbaa1f33986d652b Mon Sep 17 00:00:00 2001 From: millert Date: Wed, 26 Apr 2017 13:14:28 +0000 Subject: [PATCH] Remove extraneous ", NULL" in the assignment of msgstr which was leftover from when msg_cat() was removed. From Anton Lindqvist --- usr.bin/vi/common/exf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/vi/common/exf.c b/usr.bin/vi/common/exf.c index b78dd367847..0b6ae026533 100644 --- a/usr.bin/vi/common/exf.c +++ b/usr.bin/vi/common/exf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exf.c,v 1.45 2017/04/18 01:45:35 deraadt Exp $ */ +/* $OpenBSD: exf.c,v 1.46 2017/04/26 13:14:28 millert Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -909,7 +909,7 @@ file_write(SCR *sp, MARK *fm, MARK *tm, char *name, int flags) 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; -- 2.20.1