diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-10-10 16:25:01 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-10-10 16:25:01 -0400 |
commit | 7cb7a17dba90fd122a9bea60cc5212140b029e5f (patch) | |
tree | d55be9e21f5087abae7a1de18c2d673b855957ac /instr-client.c | |
parent | 0dc96ee9ccd374cbd8606b9a39884f10b74e0918 (diff) |
revert last change; does nothing
Diffstat (limited to 'instr-client.c')
-rw-r--r-- | instr-client.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/instr-client.c b/instr-client.c index fdb5ca2..4106852 100644 --- a/instr-client.c +++ b/instr-client.c @@ -75,20 +75,12 @@ stdinAvailable (GIOChannel *source, GIOCondition condition, gpointer data) GError* error = NULL; - // strip out duplicated newlines and carriage returns - GRegex *regex = g_regex_new ("[\\n\\r]+", 0, 0, NULL); - gchar *filt = g_regex_replace_literal (regex, tmp, -1, 0, "\n", 0, NULL); - g_regex_unref (regex); - written = g_pollable_output_stream_write_nonblocking(out, filt, size, NULL, &error); - -// written = g_pollable_output_stream_write_nonblocking(out, tmp, size, NULL, &error); + written = g_pollable_output_stream_write_nonblocking(out, tmp, size, NULL, &error); if(error != NULL && error->message) { g_print("Got error: %s\n", error->message); } - g_free (filt); - if (written != size || written <= 0) { g_print("Could not write. blocking. Written: %d\n", written); return FALSE; |