Foreign.C.String.withCStringLen doesn't terminate C string by NUL
Although the document of withCStringLen says "Marshal a Haskell string into a NUL terminated C string using temporary storage", it seems that C string is not terminated by NUL.
$ uname -a
Linux li9-154 2.4.29-linode39-1um #1 Wed Jan 19 12:22:14 EST 2005 i686 GNU/Linux
$ ghc -V
The Glorious Glasgow Haskell Compilation System, version 6.4.2
Trac metadata
Trac field | Value |
---|---|
Version | 6.4.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/base |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |