]> git.meshlink.io Git - catta/blobdiff - avahi-sharp/Utility.cs
* Fix a bug where avahi-publish-service ignores the port - Thanks to
[catta] / avahi-sharp / Utility.cs
index b15161c19b035b38edcf145581240c0fc1d46846..819e37cd9c5259c34e7004be111e741aa880e412 100644 (file)
@@ -65,7 +65,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)