Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix buffer too small error #110

Merged
merged 1 commit into from
Sep 24, 2023
Merged

Conversation

kotontrion
Copy link
Contributor

When the label contains invalid markup, the GLib.markup_escape_text function is called. This resulted in a buffer too small error, when the string included emojis. I don't know why this resulted in this error because .length property does take this into account. ('😅'.length does return 2).
Fixed this by setting the label length to -1 and letting GLib figure out the length itself.

@Aylur Aylur merged commit be89214 into Aylur:main Sep 24, 2023
1 check passed
@kotontrion kotontrion deleted the fix/label-markup-buffer branch October 2, 2023 14:09
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants