xmahjongg: avoid printf %n and move HOMEPAGE to https

This commit is contained in:
tb 2021-09-10 16:41:24 +00:00
parent ade3724489
commit 9a22251b29
2 changed files with 17 additions and 3 deletions

View File

@ -1,12 +1,12 @@
# $OpenBSD: Makefile,v 1.35 2019/07/12 21:02:21 sthen Exp $
# $OpenBSD: Makefile,v 1.36 2021/09/10 16:41:24 tb Exp $
COMMENT= colorful solitaire Mah Jongg game for X11
DISTNAME= xmahjongg-3.7
REVISION = 6
REVISION = 7
CATEGORIES= games x11
HOMEPAGE= http://www.lcdf.org/~eddietwo/xmahjongg/
HOMEPAGE= https://www.lcdf.org/~eddietwo/xmahjongg/
# GPL
PERMIT_PACKAGE= Yes

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-liblcdf_permstr_cc,v 1.1 2021/09/10 16:41:24 tb Exp $
Index: liblcdf/permstr.cc
--- liblcdf/permstr.cc.orig
+++ liblcdf/permstr.cc
@@ -309,7 +309,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;