X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fshutdown.cc;h=c751fd086fe422a3e9beb877a7cc3abb37aa84c4;hb=1fb468f7cefdbd1fac102d29c20ea6ffc8302f36;hp=4d4577ffbdee41ea8283f19cb1f9392968c36394;hpb=8c38597954d2318d844b01df047ff171cefac988;p=oweals%2Fdinit.git diff --git a/src/shutdown.cc b/src/shutdown.cc index 4d4577f..c751fd0 100644 --- a/src/shutdown.cc +++ b/src/shutdown.cc @@ -215,7 +215,7 @@ static void wait_for_reply(cpbuffer<1024> &rbuffer, int fd) while (rbuffer[0] >= 100) { // Information packet; discard. - fillBufferTo(&rbuffer, fd, 1); + fillBufferTo(&rbuffer, fd, 2); int pktlen = (unsigned char) rbuffer[1]; rbuffer.consume(1); // Consume one byte so we'll read one byte of the next packet