strncpy(menu_item, item, menu_width); 
strncpy(menu_item, item, menu_width - ITEM_IDENT); 
static void do_print_item(WINDOW * win, const char *item, int choice,                          int selected, int hotkey){	int j;	char *menu_item = malloc(menu_width + 1);	strncpy(menu_item, item, menu_width);	menu_item[menu_width] = 0;	j = first_alpha(menu_item, "YyNnMmHh");	/* Clear 'residue' of last item */	wattrset(win, menubox_attr);	wmove(win, choice, 0);#if OLD_NCURSES	{		int i;		for (i = 0; i < menu_width; i++)			waddch(win, ' ');	}#else	wclrtoeol(win);#endif	wattrset(win, selected ? item_selected_attr : item_attr);	mvwaddstr(win, choice, ITEM_IDENT, menu_item);	if (hotkey) {		wattrset(win, selected ? tag_key_selected_attr : tag_key_attr);		mvwaddch(win, choice, ITEM_IDENT + j, menu_item[j]);	}	if (selected) {		wmove(win, choice, ITEM_IDENT + 1);	}	free(menu_item);	wrefresh(win);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/e067e1f98d54d62fd598126f95e7684e5b63e67f/menubox.c/clean/scripts/lxdialog/menubox.c