From a1a14ca4770cd2b78dd547eccdf8980a90659167 Mon Sep 17 00:00:00 2001
From: Martin Nilsson <nilsson@opera.com>
Date: Sun, 19 May 2013 23:09:47 +0200
Subject: [PATCH] Use sprintf %H

---
 lib/modules/Protocols.pmod/DNS_SD.pmod | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/modules/Protocols.pmod/DNS_SD.pmod b/lib/modules/Protocols.pmod/DNS_SD.pmod
index 73ebbdace2..784c950e86 100644
--- a/lib/modules/Protocols.pmod/DNS_SD.pmod
+++ b/lib/modules/Protocols.pmod/DNS_SD.pmod
@@ -48,7 +48,7 @@ class Service {
       txt_flat = "";
       foreach(txt, string entry) {
 	entry = clip_utf8_str(entry, 255);
-	txt_flat += sprintf("%c%s", (int) strlen(entry), entry);
+	txt_flat += sprintf("%1H", entry);
       }
     }
     return txt_flat;
-- 
GitLab