GError *error;
guint16 l;
+ guint16 i;
+ guint8 *start;
+ gchar *str;
GlibMldonkeyPrivate *priv = GLIB_MLDONKEY_GET_PRIVATE (glibmldonkey);
case 19: /* ConsoleMessage */
l = bytes2guint16 (msg->data);
- g_message ("strlen %d", l);
+ str = g_new0 (gchar, l + 1);
+ g_message ("strlen: %d", l);
+ start = msg->data + 2;
+ for (i = 0; i < l; i++)
+ {
+ str[i] = start[i];
+ }
+ str[l] = '\0';
+ g_message ("message: %s", str);
+ ret = FALSE;
break;