[project @ 2002-01-31 13:42:20 by simonmar]
authorsimonmar <unknown>
Thu, 31 Jan 2002 13:42:20 +0000 (13:42 +0000)
committersimonmar <unknown>
Thu, 31 Jan 2002 13:42:20 +0000 (13:42 +0000)
commit95ac9a43042be46611c4eff33d2dbbc8518fd477
tree108cc5940049992554e1eb069af7883d4ee97d7a
parent2980a982358faa1143a53a53bf7b7ca60a1acada
[project @ 2002-01-31 13:42:20 by simonmar]
Fix a classic bug: copying a Haskell string with one of the C string
functions (in this case strncpy()) is wrong when the string contains
'\0' characters.

The symptom in this case is that Happy parsers created with -ag don't
work in GHCi, because the state tables are encoded as strings
containing lots of '\0' elements.
ghc/compiler/ghci/ByteCodeGen.lhs