diff --git a/gdigi.c b/gdigi.c index 40bd7ee..c5c6458 100644 --- a/gdigi.c +++ b/gdigi.c @@ -306,7 +306,7 @@ gpointer read_data_thread(gboolean *stop) length = 0; for (i = 0; i < err; ++i) - if (buf[i] != 0xFE) /* ignore active sensing */ + if ((unsigned char)buf[i] != 0xFE) /* ignore active sensing */ buf[length++] = buf[i]; i = 0; @@ -640,7 +640,7 @@ GStrv query_preset_names(gchar bank) } for (x=10; ((xlen) && (nstr[x] == 0xF7) /* every message ends with 0xF7 */ + if ((unsigned char)data->str[x] == 0xF7) /* every message ends with 0xF7 */ break; str_array[n] = g_strdup(&data->str[x]);