} else if (strcmp(name, _("Knight")) == 0) {
promoChar = 'n';
} else if (strcmp(name, _("Promote")) == 0) {
- promoChar = '^';
+ promoChar = '+';
} else if (strcmp(name, _("Defer")) == 0) {
promoChar = '=';
} else {
* automatically call XtFree on the value returned. So have to
* make a copy of it allocated with XtMalloc */
selection_tmp= XtMalloc(strlen(selected_fen_position)+16);
- safeStrCpy(selection_tmp, selected_fen_position, sizeof(selection_tmp)/sizeof(selection_tmp[0]) );
+ safeStrCpy(selection_tmp, selected_fen_position, strlen(selected_fen_position)+16 );
*value_return=selection_tmp;
*length_return=strlen(selection_tmp);