Commit 991ae089 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix nissing include and atoi() invocation

parent f991c020
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment