Skip to content

Commit 1ee6c6f

Browse files
clyringBodigrim
authored andcommitted
Allow bytestring-0.12
1 parent ce57dfc commit 1ee6c6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

System/Posix/Env/ByteString.hsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import System.Posix.Env ( clearEnv )
4242
import qualified Data.ByteString as B
4343
import qualified Data.ByteString.Char8 as BC
4444
import Data.ByteString (ByteString)
45-
import Data.ByteString.Internal (ByteString (PS), memcpy)
45+
import Data.ByteString.Internal (ByteString (PS))
4646

4747
import qualified System.Posix.Env.Internal as Internal
4848

@@ -133,7 +133,7 @@ putEnv (PS fp o l) = withForeignPtr fp $ \p -> do
133133
--
134134
-- hence we must not free the buffer
135135
buf <- mallocBytes (l+1)
136-
memcpy buf (p `plusPtr` o) l
136+
copyBytes buf (p `plusPtr` o) l
137137
pokeByteOff buf l (0::Word8)
138138
throwErrnoIfMinus1_ "putenv" (c_putenv (castPtr buf))
139139

unix.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ library
7070

7171
build-depends:
7272
base >= 4.10 && < 4.20,
73-
bytestring >= 0.9.2 && < 0.12,
73+
bytestring >= 0.9.2 && < 0.13,
7474
filepath >= 1.4.100.0 && < 1.5,
7575
time >= 1.2 && < 1.13
7676

0 commit comments

Comments
 (0)