Commit Graph

5 Commits

Author SHA1 Message Date
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
4e956571eb remove stdout_output_buffer. Not used anymore
Ignore-this: 14dfb4c96aaf726b6c0794846d9a04aa

darcs-hash:20101111191217-f0a0d-e9e1046c7af4804b0d18516157566b6a26ec5c3d.gz
2010-11-11 11:12:17 -08:00
coreyoconnor
9bad126948 be certain to use the same output device as before any stdout redirection
Ignore-this: 8d49a95192e5f40a7e26bd403138425

darcs-hash:20100806211634-f0a0d-b80d746b71da80a8e5b7e54e0731a989f837a642.gz
2010-08-06 14:16:34 -07:00
coreyoconnor
4f06259de3 Invoke write directly instead of via hPutBuf
Ignore-this: 172072f7a4876e5864c8e54f896bf0b0

darcs-hash:20100114091229-f0a0d-915e8160f8cf596abbae4df8c9d883febeedf509.gz
2010-01-14 01:12:29 -08: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