summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorericek1112021-08-31 13:27:51 +0200
committerericek1112021-08-31 13:27:51 +0200
commit5d4c9ee0a823a094edd6308755323725c8383d48 (patch)
tree03fd382ee020273161dc973c5724b361326d1253
parent05f83cb5a8e6cd5cb6c570e4d6bf3feb6b4d357d (diff)
downloadaur-5d4c9ee0a823a094edd6308755323725c8383d48.tar.gz
patch: passed a buffer into format in sprintf
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
-rw-r--r--flrigxml.patch12
3 files changed, 22 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 79f60617da3..db3c2cf8b8c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mshv
pkgdesc = Amateur radio software by LZ2HV for digital modes MSK, JTMS, FSK, ISCAT, JT6M, FT8/4, JT65, PI4, Q65.
pkgver = 258
- pkgrel = 2
+ pkgrel = 3
url = http://lz2hv.org/mshv
arch = any
license = GPL3
@@ -16,8 +16,10 @@ pkgbase = mshv
source = https://downloads.sourceforge.net/project/mshv/MSHV_258_Full_Source_Code.zip
source = mshv_launcher.sh
source = mshv.desktop
+ source = flrigxml.patch
sha256sums = 039c4d432010fdae0805a023960145038c6ae780f7c439d77514aff6cf80cf1d
sha256sums = 5ccd21e3d585efb4f37aff8a3470aefa78a8689dad3b00334b9a8467840adbab
sha256sums = 85c256463746cb8a06ff1eee71677dcbe1d1c54d7aaf0f27156ebe9632269dba
+ sha256sums = 22de199636d17912738651eba8db6b5ccf7cecae816dcddee6d46a33d585f8ca
pkgname = mshv
diff --git a/PKGBUILD b/PKGBUILD
index 76a38cc4132..811d31118ac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=mshv
pkgver=258
-pkgrel=2
+pkgrel=3
pkgdesc="Amateur radio software by LZ2HV for digital modes MSK, JTMS, FSK, ISCAT, JT6M, FT8/4, JT65, PI4, Q65."
arch=('any')
url="http://lz2hv.org/mshv"
@@ -15,13 +15,19 @@ source=(
"https://downloads.sourceforge.net/project/mshv/MSHV_${pkgver}_Full_Source_Code.zip"
"mshv_launcher.sh"
"mshv.desktop"
+ "flrigxml.patch"
)
sha256sums=(
'039c4d432010fdae0805a023960145038c6ae780f7c439d77514aff6cf80cf1d'
'5ccd21e3d585efb4f37aff8a3470aefa78a8689dad3b00334b9a8467840adbab'
'85c256463746cb8a06ff1eee71677dcbe1d1c54d7aaf0f27156ebe9632269dba'
+ '22de199636d17912738651eba8db6b5ccf7cecae816dcddee6d46a33d585f8ca'
)
+prepare() {
+ patch --directory="$srcdir/MSHV_$pkgver" --forward --strip=1 --input="$srcdir/flrigxml.patch"
+}
+
build() {
cd "$srcdir/MSHV_$pkgver"
diff --git a/flrigxml.patch b/flrigxml.patch
new file mode 100644
index 00000000000..2b866aef96a
--- /dev/null
+++ b/flrigxml.patch
@@ -0,0 +1,12 @@
+diff --color --unified --recursive --text package.old/src/HvRigControl/HvRigCat/network/network.cpp package.new/src/HvRigControl/HvRigCat/network/network.cpp
+--- package.old/src/HvRigControl/HvRigCat/network/network.cpp 2021-07-27 10:15:16.000000000 +0200
++++ package.new/src/HvRigControl/HvRigCat/network/network.cpp 2021-08-31 13:19:04.173424801 +0200
+@@ -471,7 +471,7 @@
+ ts.append("Host: "+s_nethost+":"+s_netport+"\r\n");
+ ts.append("Content-type: text/xml\r\n");
+ char *hed1 = qstrdup(qPrintable(ts));
+- sprintf(xmlbuf,hed1);
++ strcat(xmlbuf,hed1);
+ /*sprintf(xmlbuf,
+ "POST /RPC2 HTTP/1.1\r\n" "User-Agent: XMLRPC++ 0.8\r\n"
+ "Host: 127.0.0.1:12345\r\n" "Content-type: text/xml\r\n");*/