[vlc-commits] Fix typo causing gethostname() to fail

Rémi Denis-Courmont git at videolan.org
Mon Oct 3 19:18:38 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct  3 20:05:47 2011 +0300| [2eb100bcc65ab0aa459abb19ab826b0ee80e52b8] | committer: Rémi Denis-Courmont

Fix typo causing gethostname() to fail

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2eb100bcc65ab0aa459abb19ab826b0ee80e52b8
---

 src/pulse/mainloop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pulse/mainloop.c b/src/pulse/mainloop.c
index 75f0a74..1303216 100644
--- a/src/pulse/mainloop.c
+++ b/src/pulse/mainloop.c
@@ -193,7 +193,7 @@ pa_context *vlc_pa_connect (vlc_object_t *obj)
                               pw->pw_name);
 
         char hostname[sysconf (_SC_HOST_NAME_MAX)];
-        if (gethostname (hostname, sizeof (hostname) == 0))
+        if (gethostname (hostname, sizeof (hostname)) == 0)
             pa_proplist_sets (props, PA_PROP_APPLICATION_PROCESS_HOST,
                               hostname);
 



More information about the vlc-commits mailing list