diff --git a/minissdpd/testminissdpd.c b/minissdpd/testminissdpd.c index 52ceb6e..5670783 100644 --- a/minissdpd/testminissdpd.c +++ b/minissdpd/testminissdpd.c @@ -92,7 +92,7 @@ main(int argc, char * * argv) char overflow[] = { 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; int s; int i; - unsigned char buf[2048]; + unsigned char buf[16*1024]; ssize_t n; const char * sockpath = "/var/run/minissdpd.sock"; diff --git a/miniupnpc/minissdpc.c b/miniupnpc/minissdpc.c index a540341..8b7421b 100644 --- a/miniupnpc/minissdpc.c +++ b/miniupnpc/minissdpc.c @@ -46,7 +46,7 @@ getDevicesFromMiniSSDPD(const char * devtype, const char * socketpath) { struct UPNPDev * tmp; struct UPNPDev * devlist = NULL; - unsigned char buffer[2048]; + unsigned char buffer[4*1024]; /* is that enough ? */ ssize_t n; unsigned char * p; unsigned char * url;