fix buffer too small error (#110)

This commit is contained in:
kotontrion
2023-09-24 14:27:17 +02:00
committed by GitHub
parent 364fde9131
commit be8921478e
+1 -1
View File
@@ -47,7 +47,7 @@ export default class AgsLabel extends Gtk.Label {
Pango.parse_markup(label, label.length, '0');
} catch (e) {
if (e instanceof GLib.MarkupError)
label = GLib.markup_escape_text(label, label.length);
label = GLib.markup_escape_text(label, -1);
else
logError(e as Error);
}