From 3fcd7a433c1422c52804181de6a719a527830326 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 9 Nov 2004 01:04:17 +0000 Subject: use fqdn in module-x11-publish as well git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@278 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/module-x11-publish.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'polyp') diff --git a/polyp/module-x11-publish.c b/polyp/module-x11-publish.c index a488f6d5..c862fe3a 100644 --- a/polyp/module-x11-publish.c +++ b/polyp/module-x11-publish.c @@ -147,8 +147,11 @@ int pa__init(struct pa_core *c, struct pa_module*m) { u->display = pa_x11_wrapper_get_display(u->x11_wrapper); - pa_get_host_name(hn, sizeof(hn)); - pa_get_user_name(un, sizeof(un)); + if (!pa_get_fqdn(hn, sizeof(hn))) + goto fail; + + if (!pa_get_user_name(un, sizeof(un))) + goto fail; u->id = pa_sprintf_malloc("%s@%s/%u", un, hn, (unsigned) getpid()); -- cgit