summaryrefslogtreecommitdiff
path: root/editors/nvi
diff options
context:
space:
mode:
authorenami <enami>2015-05-11 08:43:44 +0000
committerenami <enami>2015-05-11 08:43:44 +0000
commitd34139ece3f89388651e283502d1558337a3c90e (patch)
treeb66b9409bb0a4e2677cf519c4f19bbbb9b473430 /editors/nvi
parent639bd9fd4af0ae9963dcdc15b85dbf4abc59fbdc (diff)
downloadpkgsrc-d34139ece3f89388651e283502d1558337a3c90e.tar.gz
Fix ^G to print correct ratio on Mac OSX. Without this fix, the output
looks like this: Makefile: unmodified: line 1 of 55 [140733193388033%]
Diffstat (limited to 'editors/nvi')
-rw-r--r--editors/nvi/distinfo3
-rw-r--r--editors/nvi/patches/patch-common_msg.c14
2 files changed, 16 insertions, 1 deletions
diff --git a/editors/nvi/distinfo b/editors/nvi/distinfo
index d5d1322503c..e6f189b80ad 100644
--- a/editors/nvi/distinfo
+++ b/editors/nvi/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2013/09/20 14:50:49 ryoon Exp $
+$NetBSD: distinfo,v 1.21 2015/05/11 08:43:44 enami Exp $
SHA1 (nvi-1.81.6.tar.bz2) = d3445ed69166102735335a2ff60d092d9a9143c6
RMD160 (nvi-1.81.6.tar.bz2) = 0db8568bea96392d9a027044177c60317c8ade36
@@ -35,6 +35,7 @@ SHA1 (patch-bc) = 6ac8377ae6f2fc513c058c0bf7f5ad18e97141a8
SHA1 (patch-bd) = 9a04f7a247fe6bf800469e81f7a83ffddd45b4b5
SHA1 (patch-common_conv.c) = efb2dabf226523a493fc1172013adc8021f4c2b9
SHA1 (patch-common_key.h) = 29f8b89b41b087ff7c2e9a5483fb9e6d2291c750
+SHA1 (patch-common_msg.c) = 73c6e8df0d5c85f4fee1316ea65de9da1876340b
SHA1 (patch-dist_Makefile.am) = ebae821ce659df003f5f2043f754e325c0863aff
SHA1 (patch-dist_config.h.in) = 21568929b165d1e774e59d6c648e0af7b17760da
SHA1 (patch-dist_configure.in) = c7b70b1a93889f41d949a3ede034f30abc063b7b
diff --git a/editors/nvi/patches/patch-common_msg.c b/editors/nvi/patches/patch-common_msg.c
new file mode 100644
index 00000000000..19a3d31566b
--- /dev/null
+++ b/editors/nvi/patches/patch-common_msg.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-common_msg.c,v 1.1 2015/05/11 08:43:44 enami Exp $
+
+--- common/msg.c.orig 2007-11-18 16:41:42.000000000 +0000
++++ common/msg.c
+@@ -640,7 +640,8 @@ msgq_status(SCR *sp, db_recno_t lno, u_i
+ 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, (u_long)lno, (u_long)last,
++ (long)((lno * 100) / last));
+ p += strlen(p);
+ }
+ } else {