From b66a730b881d05c34c0dfe2da052b5fa01429244 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 12 Mar 2007 11:35:55 +0000 Subject: [PATCH] copyBytes copies bytes, not elements; fixes trac #1203 --- Foreign/Marshal/Utils.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foreign/Marshal/Utils.hs b/Foreign/Marshal/Utils.hs index f1071f9..4e03055 100644 --- a/Foreign/Marshal/Utils.hs +++ b/Foreign/Marshal/Utils.hs @@ -161,7 +161,7 @@ withMany withFoo (x:xs) f = withFoo x $ \x' -> copyBytes :: Ptr a -> Ptr a -> Int -> IO () copyBytes dest src size = memcpy dest src (fromIntegral size) --- |Copies the given number of elements from the second area (source) into the +-- |Copies the given number of bytes from the second area (source) into the -- first (destination); the copied areas /may/ overlap -- moveBytes :: Ptr a -> Ptr a -> Int -> IO () -- 1.7.10.4