diff options
-rw-r--r-- | System/Posix/Env.hsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/System/Posix/Env.hsc b/System/Posix/Env.hsc index f426f98..bd3f1ce 100644 --- a/System/Posix/Env.hsc +++ b/System/Posix/Env.hsc @@ -109,7 +109,7 @@ setEnv :: String -> String -> Bool {-overwrite-} -> IO () setEnv key value ovrwrt = do withCString key $ \ keyP -> withCString value $ \ valueP -> - throwErrnoIfMinus1_ "putenv" $ + throwErrnoIfMinus1_ "setenv" $ c_setenv keyP valueP (fromIntegral (fromEnum ovrwrt)) foreign import ccall unsafe "setenv" |