From 9a3c06b6bacdddec96c9cacb1f52822962ee934c Mon Sep 17 00:00:00 2001 From: Jean-Michel Friedt Date: Sat, 8 Jun 2024 17:18:01 +0200 Subject: [PATCH] decode META as UTF-8 array if binary --- lib/m17_coder_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/m17_coder_impl.cc b/lib/m17_coder_impl.cc index 0ea05c6..dc8b2df 100644 --- a/lib/m17_coder_impl.cc +++ b/lib/m17_coder_impl.cc @@ -112,7 +112,7 @@ void m17_coder_impl::set_meta(std::string meta) // either an ASCII string if enc {lsf.meta[j]=(meta.data()[i]-0xc2)*0x40+meta.data()[i+1];i+=2;j++;} } while ((j<=14) && (i<=length)); - length=j-1; // remove last increment + length=j; printf("%d bytes: ",length); for (i=0;i