gtkpod: fix segmentation fault when parsing multibyte characters

This commit is contained in:
Worf
2026-02-15 10:11:22 +07:00
committed by Đoàn Trần Công Danh
parent da1e5393bf
commit 66072fcdd7
2 changed files with 12 additions and 1 deletions
@@ -0,0 +1,11 @@
--- a/libgtkpod/misc.c
+++ b/libgtkpod/misc.c
@@ -475,7 +475,7 @@ fuzzy_skip_prefix(const gchar *name) {
g_return_val_if_fail (csfk, 0);
- tempStr = g_utf8_collate_key(cleanStr, csfk->length);
+ tempStr = g_utf8_collate_key(cleanStr, -1);
if (strcmp(tempStr, csfk->key) == 0) {
/* Found article, bump pointers ahead appropriate distance
*/
+1 -1
View File
@@ -1,7 +1,7 @@
# Template file for 'gtkpod'
pkgname=gtkpod
version=2.1.5
revision=7
revision=8
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="flex intltool pkg-config glib"