summaryrefslogtreecommitdiff
path: root/response.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-14 10:43:20 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-14 10:43:20 -0400
commitfed09a34189c3e2f3e8378f143c63683767d0104 (patch)
tree2108cb343321758da504cbba033fc99e67e33436 /response.c
parentad41125d65400ae608d99fd95aefad93102d260e (diff)
Fix improper string memory allocation
Diffstat (limited to 'response.c')
-rw-r--r--response.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/response.c b/response.c
index 2e89908..95658ef 100644
--- a/response.c
+++ b/response.c
@@ -131,15 +131,13 @@ void responseCb(gpointer instance, GObject *arg1, gpointer user_data)
GPollableOutputStream* stream = (GPollableOutputStream*)data->outStream;
gchar* str = data->data;
+ // I2C/LCD test functions - start - FIXME
g_strstrip(str);
-
- // I2C/LCD test functions - start
guchar status = I2C_Read (PCF8574A + Upper_Encoder_Port);
gchar *lcd_str = g_strdup_printf ("%s %x",str,status);
LCD_display_error_message(lcd_str);
// I2C/LCD test functions - stop
- // FIXME - Parser_main may generate multiple responses
Parser_main(str, 1, data->cb, stream);
g_static_mutex_unlock (&mutex);