summaryrefslogtreecommitdiffstats
path: root/avahi-sharp/Utility.cs
diff options
context:
space:
mode:
authorJames Willcox <snopr@snorp.net>2006-01-07 21:05:24 +0000
committerJames Willcox <snopr@snorp.net>2006-01-07 21:05:24 +0000
commitc4ad7a15a9e50d7fc39697ffb3c16a88a9388b0e (patch)
tree484868fc2725d892dccb24e632dd058c068f8f19 /avahi-sharp/Utility.cs
parent2bfc136b58cc239f170f3b247257c5369b085570 (diff)
actually NULL-terminate strings passed to avahi.
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1064 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-sharp/Utility.cs')
-rw-r--r--avahi-sharp/Utility.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-sharp/Utility.cs b/avahi-sharp/Utility.cs
index b15161c..819e37c 100644
--- a/avahi-sharp/Utility.cs
+++ b/avahi-sharp/Utility.cs
@@ -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)