vty/cbits
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
..
gwinsz.c use alloca instead of mallocBytes for exception safety 2009-09-04 10:29:28 -07:00
gwinsz.h use alloca instead of mallocBytes for exception safety 2009-09-04 10:29:28 -07:00
mk_wcwidth.c attempt to fix a segfault possibly due to not NUL terminated strings 2011-08-16 21:57:29 +02:00
set_term_timing.c use alloca instead of mallocBytes for exception safety 2009-09-04 10:29:28 -07:00