diff --git a/gpio/Makefile b/gpio/Makefile index 6b8f838..67eb45a 100644 --- a/gpio/Makefile +++ b/gpio/Makefile @@ -72,6 +72,7 @@ tags: $(SRC) .PHONY: install install: gpio $Q echo "[Install]" + $Q mkdir -p $(DESTDIR)$(PREFIX)/bin $Q cp gpio $(DESTDIR)$(PREFIX)/bin ifneq ($(WIRINGPI_SUID),0) $Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio diff --git a/wiringPi/drcNet.c b/wiringPi/drcNet.c index 0964ff7..0aa8a4f 100644 --- a/wiringPi/drcNet.c +++ b/wiringPi/drcNet.c @@ -76,12 +76,12 @@ static int remoteReadline (int fd, char *buf, int max) static char *getChallenge (int fd) { - static char buf [1024] ; + static char buf [512] ; int num ; for (;;) { - if ((num = remoteReadline (fd, buf, 1023)) < 0) + if ((num = remoteReadline (fd, buf, 511)) < 0) return NULL ; buf [num] = 0 ; diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index 1c929d4..e97d6fd 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -2256,10 +2256,6 @@ int wiringPiSetup (void) int fd ; int model, rev, mem, maker, overVolted ; -// It's actually a fatal error to call any of the wiringPiSetup routines more than once, -// (you run out of file handles!) but I'm fed-up with the useless twats who email -// me bleating that there is a bug in my code, so screw-em. - if (wiringPiSetuped) return 0 ;