somehow, i'm getting a buffer that has nothing but a '\0' char
g_io_channel_write_chars gets really upset about the nil character and crashes
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2697
b64f7644-9d1e-0410-96f1-
a4d463321fa5
signal_user_data_t *ud = (signal_user_data_t*)data;
status = g_io_channel_read_line (source, &text, &length, NULL, &gerror);
- if (text != NULL)
+ if (text != NULL && length > 0 && text[length-1] != 0)
{
GdkWindow *window;
gint width, height;