http://bugzilla.novell.com/show_bug.cgi?id=495757
User [email protected] added comment http://bugzilla.novell.com/show_bug.cgi?id=495757#c3 --- Comment #3 from Zoltan Varga <[email protected]> 2009-04-17 13:16:12 MDT --- This is the result on my machine using an unmanaged version of the testcase: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< void main () { struct usb_bus *bus; printf ("X: %d %d\n", PATH_MAX + 1, G_STRUCT_OFFSET (struct usb_bus, root_dev)); usb_init(); int iBus=usb_find_busses(); int iDev=usb_find_devices(); bus = usb_get_busses(); printf ("B: %s %p\n", bus->dirname, bus->root_dev); >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /a.out X: 4097 4136 B: 007 (nil) sudo ./a.out X: 4097 4136 B: 007 0x12ed200 Also, notice that the sDir field has length PATH_MAX + 1 in usb.h, but PATH_MAX in the managed structure. Maybe this is the source of the problem. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
