diff --git a/debian-template/wiringPi/DEBIAN/postinst b/debian-template/wiringPi/DEBIAN/postinst old mode 100644 new mode 100755 diff --git a/debian-template/wiringPi/DEBIAN/postrm b/debian-template/wiringPi/DEBIAN/postrm old mode 100644 new mode 100755 diff --git a/wiringPi/drcNet.c b/wiringPi/drcNet.c index 71b7435..0fc5d2b 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.h b/wiringPi/wiringPi.h index dd60cff..4747acf 100755 --- a/wiringPi/wiringPi.h +++ b/wiringPi/wiringPi.h @@ -121,7 +121,7 @@ #define PI_MAKER_STADIUM 5 extern const char *piModelNames [21] ; -extern const char *piRevisionNames [21] ; +extern const char *piRevisionNames [16] ; extern const char *piMakerNames [16] ; extern const int piMemorySize [ 8] ;