summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <Vincent.Torri@iecn.u-nancy.fr>2005-12-18 10:03:27 +0000
committerVincent Torri <Vincent.Torri@iecn.u-nancy.fr>2005-12-18 10:03:27 +0000
commit7c808a08ec3cca0e7c39ce8287e99c2a0a53fd26 (patch)
treec0f6d30f7890124fe62338cad4b0e4855b9a05be
parentf4464e70a9aae90c5ba9b2efa1ebb888079f3b20 (diff)
fix memcpy usage
-rwxr-xr-xxcb/doc/tutorial/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/xcb/doc/tutorial/index.html b/xcb/doc/tutorial/index.html
index 9ddbb3c..2ec121d 100755
--- a/xcb/doc/tutorial/index.html
+++ b/xcb/doc/tutorial/index.html
@@ -3150,7 +3150,7 @@ int length;
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 */