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/common Fix bogus file location in perc...
details: https://anonhg.NetBSD.org/src/rev/39f0fac9b1f6
branches: trunk
changeset: 357321:39f0fac9b1f6
user: rin <rin%NetBSD.org@localhost>
date: Mon Nov 06 03:03:54 2017 +0000
description:
Fix bogus file location in percentage.
diffstat:
external/bsd/nvi/dist/common/msg.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 62f310f49f61 -r 39f0fac9b1f6 external/bsd/nvi/dist/common/msg.c
--- a/external/bsd/nvi/dist/common/msg.c Mon Nov 06 03:02:22 2017 +0000
+++ b/external/bsd/nvi/dist/common/msg.c Mon Nov 06 03:03:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msg.c,v 1.3 2014/01/26 21:43:45 christos Exp $ */
+/* $NetBSD: msg.c,v 1.4 2017/11/06 03:03:54 rin Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -16,7 +16,7 @@
static const char sccsid[] = "Id: msg.c,v 10.61 2003/07/18 23:17:30 skimo Exp (Berkeley) Date: 2003/07/18 23:17:30 ";
#endif /* not lint */
#else
-__RCSID("$NetBSD: msg.c,v 1.3 2014/01/26 21:43:45 christos Exp $");
+__RCSID("$NetBSD: msg.c,v 1.4 2017/11/06 03:03:54 rin Exp $");
#endif
#include <sys/param.h>
@@ -657,7 +657,8 @@
p += len;
} else {
t = msg_cat(sp, "027|line %lu of %lu [%ld%%]", &len);
- (void)sprintf(p, t, lno, last, (lno * 100) / last);
+ (void)sprintf(p, t, lno, last,
+ (long)((lno * 100) / last));
p += strlen(p);
}
} else {
Home |
Main Index |
Thread Index |
Old Index