summaryrefslogtreecommitdiffstats
path: root/avahi-core/entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core/entry.c')
-rw-r--r--avahi-core/entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-core/entry.c b/avahi-core/entry.c
index 5f4406f..25eaf0d 100644
--- a/avahi-core/entry.c
+++ b/avahi-core/entry.c
@@ -225,7 +225,7 @@ static AvahiEntry * server_add_internal(
/* may have to move lower into logic, for _new_ and _modified_ records only */
printf("+++ record of type %d named %s observed at entrypoint\n", r->key->type, r->key->name);
- char in[] = "foo.com";
+ char *in[] = avahi_strdup("foo.com");
char out[100];
avahi_unescape_label(&in, out, 100);
printf("result: -%s-\n", out);