Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37498751
en ru br
Репозитории ALT
5.1: 0.99.9-alt7.1
4.1: 0.99.9-alt7
4.0: 0.99.9-alt6.1
3.0: 0.99.7-alt3
www.altlinux.org/Changes

Группа :: Коммуникации
Пакет: jpilot

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: jpilot-0.99.9-keyring.patch
Скачать


--- ./KeyRing/keyring.c	2005-12-30 22:01:08 +0300
+++ ./KeyRing/keyring.c	2006-03-12 11:17:14 +0300
@@ -1344,7 +1344,9 @@
    int i, count;
    char all[]=N_("All");
    char *categories[18];
-     
+   int  len;
+   char *temp_str;
+
    jp_logf(JP_LOG_DEBUG, "KeyRing: make_menus\n");
 
    /* This gets the application specific data out of the database for us.
@@ -1369,8 +1371,11 @@
       if (ai.name[i][0]=='\0') {
 	 continue;
       }
-      jp_charset_p2j(ai.name[i], 16);
       categories[count+1]=ai.name[i];
+      temp_str = malloc((len = strlen(categories[count+1])*2+1));
+      multibyte_safe_strncpy(temp_str, categories[count+1], len);
+      jp_charset_p2j(temp_str, len);
+      categories[count+1]=temp_str;
       glob_category_number_from_menu_item[count++]=i;
    }
    categories[count+1]=NULL;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin