Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libdatrie Add unsigned char cast for isspace() o...
details: https://anonhg.NetBSD.org/pkgsrc/rev/74fbc0ad8e6e
branches: trunk
changeset: 436238:74fbc0ad8e6e
user: scole <scole%pkgsrc.org@localhost>
date: Thu Jul 30 01:56:16 2020 +0000
description:
Add unsigned char cast for isspace() or can fail to parse words properly, bump pkgrevision
diffstat:
devel/libdatrie/Makefile | 3 ++-
devel/libdatrie/distinfo | 3 ++-
devel/libdatrie/patches/patch-tools_trietool.c | 21 +++++++++++++++++++++
3 files changed, 25 insertions(+), 2 deletions(-)
diffs (49 lines):
diff -r 642ca20a8236 -r 74fbc0ad8e6e devel/libdatrie/Makefile
--- a/devel/libdatrie/Makefile Thu Jul 30 00:02:10 2020 +0000
+++ b/devel/libdatrie/Makefile Thu Jul 30 01:56:16 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2018/07/11 18:08:43 adam Exp $
+# $NetBSD: Makefile,v 1.20 2020/07/30 01:56:16 scole Exp $
DISTNAME= libdatrie-0.2.12
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://linux.thai.net/pub/thailinux/software/libthai/
MASTER_SITES+= ftp://linux.thai.net/pub/ThaiLinux/software/libthai/
diff -r 642ca20a8236 -r 74fbc0ad8e6e devel/libdatrie/distinfo
--- a/devel/libdatrie/distinfo Thu Jul 30 00:02:10 2020 +0000
+++ b/devel/libdatrie/distinfo Thu Jul 30 01:56:16 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.11 2018/07/11 18:08:43 adam Exp $
+$NetBSD: distinfo,v 1.12 2020/07/30 01:56:16 scole Exp $
SHA1 (libdatrie-0.2.12.tar.xz) = 8516d3c86e05338d3cd3ce0421181d66709dba18
RMD160 (libdatrie-0.2.12.tar.xz) = 8e29779b2f850830f9d2bb720cf21adc768333fd
SHA512 (libdatrie-0.2.12.tar.xz) = 7cf17859331d6111679e2c6fe0fa256abb13187b0b1116c8225f066281ab852f847a0d2d0d42b9604faf1d56290909fe3386362e34ed5bd1109516dffa2775a1
Size (libdatrie-0.2.12.tar.xz) = 310236 bytes
+SHA1 (patch-tools_trietool.c) = 638eee9ec4a22284f442a742e4cd3428c74d67e1
diff -r 642ca20a8236 -r 74fbc0ad8e6e devel/libdatrie/patches/patch-tools_trietool.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdatrie/patches/patch-tools_trietool.c Thu Jul 30 01:56:16 2020 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-tools_trietool.c,v 1.1 2020/07/30 01:56:16 scole Exp $
+
+Use unsigned-char cast with isspace
+
+--- tools/trietool.c.orig 2018-06-06 08:39:34.000000000 +0000
++++ tools/trietool.c
+@@ -614,12 +614,12 @@ string_trim (char *s)
+ char *p;
+
+ /* skip leading white spaces */
+- while (*s && isspace (*s))
++ while (*s && isspace ((unsigned char)*s))
+ ++s;
+
+ /* trim trailing white spaces */
+ p = s + strlen (s) - 1;
+- while (isspace (*p))
++ while (isspace ((unsigned char)*p))
+ --p;
+ *++p = '\0';
+
Home |
Main Index |
Thread Index |
Old Index