kensanata / bitlbee-mastodon

A Mastodon plugin for Bitlbee
https://alexschroeder.ch/software/Bitlbee_Mastodon
GNU General Public License v2.0
30 stars 7 forks source link

Check cw isn't NULL before g_utf8_strlen #32

Closed iguanaonmystack closed 5 years ago

iguanaonmystack commented 5 years ago

Avoids the following glib warning being dumped to stderr (or apparently the control channel if bitlbee's deployed in inetd mode):

(process:9444): GLib-CRITICAL **: 17:45:02.925: g_utf8_strlen: assertion 'p != NULL || max == 0' failed

kensanata commented 5 years ago

Thanks!