]> git.meshlink.io Git - catta/blobdiff - avahi-sharp/Utility.cs
Fix registration of really large records, like it is necessary for XEP-0174 (jabber...
[catta] / avahi-sharp / Utility.cs
index b15161c19b035b38edcf145581240c0fc1d46846..9081b011dc210a1e631ee5470021b9354f4e6221 100644 (file)
@@ -24,7 +24,9 @@ using System.Net;
 using System.Text;
 using System.Runtime.InteropServices;
 using Mono.Unix;
+using Mono.Unix.Native;
 
+using Stdlib = Mono.Unix.Native.Stdlib;
 
 namespace Avahi
 {
@@ -65,7 +67,7 @@ namespace Avahi
             if (str == null)
                 return null;
 
-            return Encoding.UTF8.GetBytes (str);
+            return Encoding.UTF8.GetBytes (str + "\0"); // lame.
         }
 
         private static IntPtr StringToPtr (string str)