repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[fix] - fix allocation of if list for osx
[deb_libnfs.git]
/
lib
/
libnfs-sync.c
diff --git
a/lib/libnfs-sync.c
b/lib/libnfs-sync.c
index faf85458a02be7e03335ff3efd297e11d5749290..0a57c7b97e562c1844fd0b183271d1ff8fea2b7f 100644
(file)
--- a/
lib/libnfs-sync.c
+++ b/
lib/libnfs-sync.c
@@
-1227,7
+1227,7
@@
struct nfs_server_list *nfs_find_local_servers(void)
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);