- removed one unneeded header in examples/nfsclient-bcast.c which was breaking build under osx
#include <netdb.h>
#include "libnfs.h"
#include "libnfs-raw.h"
-#include "libnfs-private.h"
#include "libnfs-raw-mount.h"
#include "libnfs-raw-portmap.h"
ifc.ifc_buf = NULL;
ifc.ifc_len = size;
- while (ifc.ifc_len == size) {
+ while(ifc.ifc_len > (size - sizeof(struct ifreq))) {
size *= 2;
free(ifc.ifc_buf);
ifc.ifc_buf = NULL;
ifc.ifc_len = size;
- while (ifc.ifc_len == size) {
+ while(ifc.ifc_len > (size - sizeof(struct ifreq))) {
size *= 2;
free(ifc.ifc_buf);