[vlc-devel] commit: Fix nissing include and atoi() invocation ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jun 22 18:44:58 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jun 22 19:42:55 2008 +0300| [991ae089635d4b4c3882e9125369be2e7ead85af]
Fix nissing include and atoi() invocation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=991ae089635d4b4c3882e9125369be2e7ead85af
---
src/network/rootbind.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/network/rootbind.c b/src/network/rootbind.c
index c6546d4..983c657 100644
--- a/src/network/rootbind.c
+++ b/src/network/rootbind.c
@@ -35,6 +35,7 @@ int rootwrap_bind (int, int, int, const struct sockaddr *, size_t);
#ifdef ENABLE_ROOTWRAP
#include <string.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
@@ -97,7 +98,7 @@ int rootwrap_bind (int family, int socktype, int protocol,
const char *sockenv = getenv ("VLC_ROOTWRAP_SOCK");
if (sockenv != NULL)
- sock = atoi (sock);
+ sock = atoi (sockenv);
if (sock == -1)
{
errno = EACCES;
More information about the vlc-devel
mailing list