Skip to content

Commit

Permalink
fix buffer too small error (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotontrion authored Sep 24, 2023
1 parent 364fde9 commit be89214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit be89214

Please sign in to comment.