diff options
-rw-r--r-- | response.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -106,8 +106,11 @@ void responseCb(gpointer instance, GObject *arg1, gpointer user_data) gssize len = data->size; gssize written = 0; - gchar* upper = g_ascii_strup(str, len); + // remove leading and trailing whitespace + g_strstrip (str); + // dummy response function + gchar* upper = g_ascii_strup(str, len); gchar *out_string = g_strdup_printf("%s\n%s\n%s\n",upper,upper,upper); gssize out_len = strlen (out_string); |