File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ import System.Posix.Env ( clearEnv )
42
42
import qualified Data.ByteString as B
43
43
import qualified Data.ByteString.Char8 as BC
44
44
import Data.ByteString (ByteString )
45
- import Data.ByteString.Internal (ByteString (PS ), memcpy )
45
+ import Data.ByteString.Internal (ByteString (PS ))
46
46
47
47
import qualified System.Posix.Env.Internal as Internal
48
48
@@ -133,7 +133,7 @@ putEnv (PS fp o l) = withForeignPtr fp $ \p -> do
133
133
--
134
134
-- hence we must not free the buffer
135
135
buf <- mallocBytes (l+ 1 )
136
- memcpy buf (p `plusPtr` o) l
136
+ copyBytes buf (p `plusPtr` o) l
137
137
pokeByteOff buf l (0 :: Word8 )
138
138
throwErrnoIfMinus1_ " putenv" (c_putenv (castPtr buf))
139
139
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ library
70
70
71
71
build-depends :
72
72
base >= 4.10 && < 4.20 ,
73
- bytestring >= 0.9.2 && < 0.12 ,
73
+ bytestring >= 0.9.2 && < 0.13 ,
74
74
filepath >= 1.4.100.0 && < 1.5 ,
75
75
time >= 1.2 && < 1.13
76
76
You can’t perform that action at this time.
0 commit comments