Make compiler happy

git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@96 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Mark Janssen 2006-02-07 12:33:31 +00:00
parent 86bf937325
commit 7c50df4e93
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
CC ?= gcc
CFLAGS += -Wall -DHAVE_GETOPT_LONG -DUSE_SSL
#CFLAGS += -DSETPROCTITLE
CFLAGS += -DSETPROCTITLE
LDFLAGS += -lssl
BINDIR = /usr/local/bin
INSTALLPATH = $(DESTDIR)/$(BINDIR)

View file

@ -164,7 +164,7 @@ initsetproctitle(argc, argv, envp)
if (p == NULL)
return -1;
environ[i] = strncpy(p, envp[i], len);
p[len - 1] = NULL;
p[len - 1] = (int)NULL;
}
environ[i] = NULL;