pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

dte: use upstream version of patch



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Mon Dec 18 09:20:06 2023 +0100
Changeset:	e920ee0beedc73250416c2c257b8ee3f66ff98d8

Modified Files:
	dte/distinfo
	dte/patches/patch-src_buffer.c

Log Message:
dte: use upstream version of patch

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e920ee0beedc73250416c2c257b8ee3f66ff98d8

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

diffstat:
 dte/distinfo                   | 2 +-
 dte/patches/patch-src_buffer.c | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs:
diff --git a/dte/distinfo b/dte/distinfo
index 8b1c5d96d7..7a1789432d 100644
--- a/dte/distinfo
+++ b/dte/distinfo
@@ -3,4 +3,4 @@ $NetBSD: distinfo,v 1.5 2021/10/26 10:21:26 nia Exp $
 BLAKE2s (dte-1.11.1.tar.gz) = 1930bd74fe54962a8a808bf48a171bc19aabedc624b328fa02a1d777d32e7437
 SHA512 (dte-1.11.1.tar.gz) = bdc2100d1d9db8ed24fd5df37154c681625f1d8af66b3e544450f25fa90341d2ff151504b3718e7b2a69ebc28dac41a1841d1024cab9a60c82cc4807b88a4887
 Size (dte-1.11.1.tar.gz) = 415294 bytes
-SHA1 (patch-src_buffer.c) = 2ee75ea8531acb2ed4ab3b8690c360743fc201aa
+SHA1 (patch-src_buffer.c) = 0118730fde1e72a7f86cbcebc20f3061eda478a2
diff --git a/dte/patches/patch-src_buffer.c b/dte/patches/patch-src_buffer.c
index 160482dafe..195eeb23eb 100644
--- a/dte/patches/patch-src_buffer.c
+++ b/dte/patches/patch-src_buffer.c
@@ -1,15 +1,16 @@
 $NetBSD$
 
-memcpy needs a source
+https://github.com/craigbarnes/dte/commit/77bec65e5f43ded39239a96cf8c26a5a599c31eb
 
 --- src/buffer.c.orig	2023-03-01 23:29:00.000000000 +0000
 +++ src/buffer.c
-@@ -459,7 +459,7 @@ String dump_buffer(const Buffer *buffer)
+@@ -459,7 +459,8 @@ String dump_buffer(const Buffer *buffer)
      char modestr[12];
      char timestr[64];
      if (!timespec_to_str(&file->mtime, timestr, sizeof(timestr))) {
 -        memcpy(timestr, STRN("[error]") + 1);
-+        memcpy(timestr, "[error]", 8);
++        static const char msg[] = "[error]";
++        memcpy(timestr, msg, sizeof(msg));
      }
  
      string_sprintf (


Home | Main Index | Thread Index | Old Index