[Xcb-commit] xcb/doc/tutorial index.html,1.5,1.6
Vincent Torri
xcb-commit at lists.freedesktop.org
Sun Dec 18 02:03:30 PST 2005
Update of /cvs/xcb/xcb/doc/tutorial
In directory gabe:/tmp/cvs-serv9872
Modified Files:
index.html
Log Message:
fix memcpy usage
Index: index.html
===================================================================
RCS file: /cvs/xcb/xcb/doc/tutorial/index.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- index.html 17 Dec 2005 14:41:03 -0000 1.5
+++ index.html 18 Dec 2005 10:03:27 -0000 1.6
@@ -3150,7 +3150,7 @@
length = XCBConnSetupSuccessRepVendorLength (XCBGetSetup (c));
vendor = (char *)malloc (length + 1);
if (vendor)
-memcpy (vendor, XCBConnSetupSuccessRepVendor (XCBGetSetup (c)));
+memcpy (vendor, XCBConnSetupSuccessRepVendor (XCBGetSetup (c)), length);
vendor[length] = '\0';
/* vendor contains now the name of the vendor. Must be freed when not used anymore */
More information about the xcb-commit
mailing list