Hello. I have this small example where I create a GChecksum and apply some data. The problem is when I request the digest, the program prints out the following error:
(process:8422): GLib-CRITICAL **: g_checksum_get_digest: assertion `*digest_len >= len' failed My GChecksum code is: ------------------------------------------------------------ char data[] = "Hello, World"; int len; GChecksum *checksum; guint8 *b_digest; gsize b_digest_len; checksum = g_checksum_new(G_CHECKSUM_MD5); len = strlen(data) + 1; b_digest_len = len; g_checksum_update(checksum, data, len); g_checksum_get_digest(checksum, b_digest, &b_digest_len); ------------------------------------------------------------ I initialize the digest len with the length of data. Am I doing something wrong? Please help. Greets, Luka _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list