Lines 1344-1350
Link Here
|
1344 |
int i, count; |
1344 |
int i, count; |
1345 |
char all[]=N_("All"); |
1345 |
char all[]=N_("All"); |
1346 |
char *categories[18]; |
1346 |
char *categories[18]; |
1347 |
|
1347 |
int len; |
|
|
1348 |
char *temp_str; |
1349 |
|
1348 |
jp_logf(JP_LOG_DEBUG, "KeyRing: make_menus\n"); |
1350 |
jp_logf(JP_LOG_DEBUG, "KeyRing: make_menus\n"); |
1349 |
|
1351 |
|
1350 |
/* This gets the application specific data out of the database for us. |
1352 |
/* This gets the application specific data out of the database for us. |
Lines 1369-1376
Link Here
|
1369 |
if (ai.name[i][0]=='\0') { |
1371 |
if (ai.name[i][0]=='\0') { |
1370 |
continue; |
1372 |
continue; |
1371 |
} |
1373 |
} |
1372 |
jp_charset_p2j(ai.name[i], 16); |
|
|
1373 |
categories[count+1]=ai.name[i]; |
1374 |
categories[count+1]=ai.name[i]; |
|
|
1375 |
temp_str = malloc((len = strlen(categories[count+1])*2+1)); |
1376 |
multibyte_safe_strncpy(temp_str, categories[count+1], len); |
1377 |
jp_charset_p2j(temp_str, len); |
1378 |
categories[count+1]=temp_str; |
1374 |
glob_category_number_from_menu_item[count++]=i; |
1379 |
glob_category_number_from_menu_item[count++]=i; |
1375 |
} |
1380 |
} |
1376 |
categories[count+1]=NULL; |
1381 |
categories[count+1]=NULL; |