Skip to content

epub: use g_strndup for parsing document path#717

Open
vkareh wants to merge 2 commits into
linuxmint:masterfrom
vkareh:fix-epub-path-parsing
Open

epub: use g_strndup for parsing document path#717
vkareh wants to merge 2 commits into
linuxmint:masterfrom
vkareh:fix-epub-path-parsing

Conversation

@vkareh
Copy link
Copy Markdown
Contributor

@vkareh vkareh commented May 29, 2026

Replace manual byte-by-byte copy loop with g_strndup when extracting the directory component from the epub container's full-path attribute. Also check that the content file exists before attempting to parse it, and handle failures in document title extraction gracefully.

vkareh added 2 commits May 29, 2026 13:48
Replace manual byte-by-byte copy loop with g_strndup when extracting the
directory component from the epub container's full-path attribute.
Check that the content file exists before attempting to parse it, and
handle failures in document title extraction gracefully.
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.

1 participant