From: Holger Z. <hz...@us...> - 2004-07-23 10:03:01
|
Update of /cvsroot/jake2/jake2/src/jake2/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10345/src/jake2/client Modified Files: Menu.java Key.java Log Message: replace Lib functions Index: Menu.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/client/Menu.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Menu.java 9 Jul 2004 06:50:50 -0000 1.4 --- Menu.java 23 Jul 2004 10:02:49 -0000 1.5 *************** *** 2532,2536 **** // ignore if duplicated for (i = 0; i < m_num_servers; i++) ! if (0 == strcmp(x, local_server_names[i])) return; --- 2532,2536 ---- // ignore if duplicated for (i = 0; i < m_num_servers; i++) ! if (x.equals(local_server_names[i])) return; *************** *** 3925,3929 **** for (s = 0, k = 0; k < npcxfiles - 1; k++) { ! if (!strstr(pcxnames[k], "_i.pcx")) { if (IconOfSkinExists(pcxnames[k], pcxnames, npcxfiles - 1)) { a = pcxnames[k].lastIndexOf('/'); --- 3925,3929 ---- for (s = 0, k = 0; k < npcxfiles - 1; k++) { ! if (pcxnames[k].indexOf("_i.pcx") < 0) { if (IconOfSkinExists(pcxnames[k], pcxnames, npcxfiles - 1)) { a = pcxnames[k].lastIndexOf('/'); Index: Key.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/client/Key.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Key.java 9 Jul 2004 06:50:50 -0000 1.4 --- Key.java 23 Jul 2004 10:02:49 -0000 1.5 *************** *** 616,620 **** if (history_line == Globals.edit_line) history_line = (Globals.edit_line + 1) & 31; ! Lib.strcpy(Globals.key_lines[Globals.edit_line], Globals.key_lines[history_line]); Globals.key_linepos = Lib.strlen(Globals.key_lines[Globals.edit_line]); return; --- 616,621 ---- if (history_line == Globals.edit_line) history_line = (Globals.edit_line + 1) & 31; ! //Lib.strcpy(Globals.key_lines[Globals.edit_line], Globals.key_lines[history_line]); ! System.arraycopy(Globals.key_lines[history_line], 0, Globals.key_lines[Globals.edit_line], 0, Globals.key_lines[Globals.edit_line].length); Globals.key_linepos = Lib.strlen(Globals.key_lines[Globals.edit_line]); return; *************** *** 633,637 **** } else { ! Lib.strcpy(Globals.key_lines[Globals.edit_line], Globals.key_lines[history_line]); Globals.key_linepos = Lib.strlen(Globals.key_lines[Globals.edit_line]); } --- 634,639 ---- } else { ! //Lib.strcpy(Globals.key_lines[Globals.edit_line], Globals.key_lines[history_line]); ! System.arraycopy(Globals.key_lines[history_line], 0, Globals.key_lines[Globals.edit_line], 0, Globals.key_lines[Globals.edit_line].length); Globals.key_linepos = Lib.strlen(Globals.key_lines[Globals.edit_line]); } |