[opensm] fix win8 assert (2<=size<=INT_MAX): setvbuf size param change from 0
to 1024
Signed-off by: Galina Tcharny (galina at mellanox.co.il)
Index: B:/users/xalex/MLNX_VPI_trunk/ulp/opensm/user/opensm/main.c
===================================================================
--- B:/users/xalex/MLNX_VPI_trunk/ulp/opensm/user/opensm/main.c (revision 8023)
+++ B:/users/xalex/MLNX_VPI_trunk/ulp/opensm/user/opensm/main.c (revision 8024)
@@ -692,7 +692,7 @@
};
/* force stdout to be line-buffered */
- setvbuf(stdout, NULL, _IOLBF, 0);
+ setvbuf(stdout, NULL, _IOLBF, 1024);
/* Make sure that the opensm and complib were compiled using
same modes (debug/free) */
Alexander (XaleX) Naslednikov
SW Networking Team
Mellanox Technologies
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw