Commit Graph

3 Commits

Author SHA1 Message Date
Paul van der Walt
54d35d6ade prefixed all c functions to avoid Cabal bug #944 2012-04-22 15:49:25 +02:00
Mikolaj
18fe87aa96 attempt to fix a segfault possibly due to not NUL terminated strings
The strings used in withCWStringLen are (despite the incorrect comment)
supposed to come equipped with length, but no NUL at the end
(in particular nothing is allocated for an empty string).
Fortunately, here the length suffices.

See http://hackage.haskell.org/trac/ghc/ticket/5396
and https://github.com/coreyoconnor/vty/issues/14#issuecomment-1813397
2011-08-16 21:57:29 +02:00
coreyoconnor
7b38759846 use alloca instead of mallocBytes for exception safety
Ignore-this: 1d31bef2e227fefafe8bb4b6f9511e1d

darcs-hash:20090904172928-f0a0d-987b6931294fd33f7825eddc0adf04c81716a4dd.gz
2009-09-04 10:29:28 -07:00