ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/print/lcdf-typetools/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile    2 Sep 2020 10:34:28 -0000       1.1.1.1
+++ Makefile    12 Sep 2021 19:22:54 -0000
@@ -3,6 +3,7 @@
 COMMENT =      tools to manipulate font files
 
 DISTNAME =     lcdf-typetools-2.108
+REVISION =     0
 
 CATEGORIES =   print
 
Index: patches/patch-liblcdf_permstr_cc
===================================================================
RCS file: patches/patch-liblcdf_permstr_cc
diff -N patches/patch-liblcdf_permstr_cc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-liblcdf_permstr_cc    12 Sep 2021 19:22:54 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: liblcdf/permstr.cc
+--- liblcdf/permstr.cc.orig
++++ liblcdf/permstr.cc
+@@ -275,7 +275,7 @@ vpermprintf(const char *s, va_list val)
+                 double x = va_arg(val, double);
+                 char buffer[1000];
+                 int len;
+-                sprintf(buffer, "%.10g%n", x, &len);
++                len = sprintf(buffer, "%.10g", x);
+                 extend(len);
+                 strcpy(psc + pspos, buffer);
+                 pspos += len;
-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to