summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2019-05-29 12:54:10 +0000
committerryoon <ryoon@pkgsrc.org>2019-05-29 12:54:10 +0000
commit334d1097e5517c644008db86a6b86f41dff9749e (patch)
tree4d9ddf0128456082ee20d13cb8dfc3475eb5e1ce /graphics
parent16f4cabe6fca80394ea0c5cf81c0a2be606a56b0 (diff)
downloadpkgsrc-334d1097e5517c644008db86a6b86f41dff9749e.tar.gz
Fix non-portable code, ride previous revbump
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libotf/distinfo4
-rw-r--r--graphics/libotf/patches/patch-example_otfview.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/graphics/libotf/distinfo b/graphics/libotf/distinfo
index a83fefb4c01..15b3f8d45c3 100644
--- a/graphics/libotf/distinfo
+++ b/graphics/libotf/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.11 2019/05/29 12:29:00 ryoon Exp $
+$NetBSD: distinfo,v 1.12 2019/05/29 12:54:10 ryoon Exp $
SHA1 (libotf-0.9.16.tar.gz) = ee3037f468a5381de89846ee1c78320964cfbf78
RMD160 (libotf-0.9.16.tar.gz) = ddea1124409fa97a58386251aa70b961c11b9374
SHA512 (libotf-0.9.16.tar.gz) = 0f68c45c1224f02dc0f1a8e9915dd9c1c70d71259b4e2f7bbd4fbec6426e58d4a26e4cbf28dbb8ed051ba6f532f99fc4e74b4ddf97a93ec947fa6260c875d0b4
Size (libotf-0.9.16.tar.gz) = 423979 bytes
SHA1 (patch-configure) = 5d43a445f6950ac14e5a91f37b25601d951868c2
-SHA1 (patch-example_otfview.c) = 1fec42a22bef9ecfefc9656b4f69ec6c95715bb6
+SHA1 (patch-example_otfview.c) = db34c8354a3af3615b144adabf32f0d9e8717ab0
diff --git a/graphics/libotf/patches/patch-example_otfview.c b/graphics/libotf/patches/patch-example_otfview.c
index 45d33a83077..57c3a5a34c0 100644
--- a/graphics/libotf/patches/patch-example_otfview.c
+++ b/graphics/libotf/patches/patch-example_otfview.c
@@ -1,4 +1,4 @@
-$NetBSD: patch-example_otfview.c,v 1.1 2019/05/29 12:29:00 ryoon Exp $
+$NetBSD: patch-example_otfview.c,v 1.2 2019/05/29 12:54:10 ryoon Exp $
* Fix a runtime crash on NetBSD.
@@ -8,7 +8,7 @@ $NetBSD: patch-example_otfview.c,v 1.1 2019/05/29 12:29:00 ryoon Exp $
#include <sys/stat.h>
#include <unistd.h>
#include <libgen.h>
-+#include <sys/param.h>
++#include <limits.h>
#include "config.h"
#ifdef HAVE_ALLOCA_H
@@ -19,7 +19,7 @@ $NetBSD: patch-example_otfview.c,v 1.1 2019/05/29 12:29:00 ryoon Exp $
- char *fname = basename (filename);
+ char *tmpfname = basename (filename);
+ size_t len = strlen(tmpfname);
-+ char fname[MAXPATHLEN];
++ char fname[NAME_MAX];
+ snprintf(fname, len + 1, "%s", tmpfname);
char *name = alloca (strlen (fname) + 3 + strlen (pname) + 1);