[project @ 2001-07-18 16:04:31 by rrt]
authorrrt <unknown>
Wed, 18 Jul 2001 16:04:31 +0000 (16:04 +0000)
committerrrt <unknown>
Wed, 18 Jul 2001 16:04:31 +0000 (16:04 +0000)
Fix typo (variable name wrong; wouldn't build)

ghc/compiler/main/SysTools.lhs

index e1f5b51..9c1465f 100644 (file)
@@ -694,7 +694,7 @@ getExecDir = do let len = 2048 -- plenty, PATH_MAX is 512 under Win32.
                if ret == 0 then return Nothing
                            else do s <- peekCString buf
                                    destructArray (fromIntegral len) buf
-                                   return (Just (reverse (drop (length "/bin/ghc.exe") (reverse (unDosifyPath n)))))
+                                   return (Just (reverse (drop (length "/bin/ghc.exe") (reverse (unDosifyPath s)))))
 
 
 foreign import stdcall "GetModuleFileNameA" getModuleFileName :: Addr -> CString -> Int32 -> IO Int32