gtkpod: fix segmentation fault when parsing multibyte characters
This commit is contained in:
committed by
Đoàn Trần Công Danh
parent
da1e5393bf
commit
66072fcdd7
@@ -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,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"
|
||||
|
||||
Reference in New Issue
Block a user