Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/othersrc/dist/cdk/cdk.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- othersrc/dist/cdk/cdk.c 2001/01/04 20:15:30 1.2 +++ othersrc/dist/cdk/cdk.c 2004/04/05 10:21:23 1.3 @@ -1,9 +1,9 @@ #include /* - * $Author: garbled $ - * $Date: 2001/01/04 20:15:30 $ - * $Revision: 1.2 $ + * $Author: wiz $ + * $Date: 2004/04/05 10:21:23 $ + * $Revision: 1.3 $ */ char *GPasteBuffer = 0; @@ -471,7 +471,8 @@ chtype *char2Chtype (char *string, int * } else if (string[from] == '\t') { - for (x=0; x < 8; x++) + int save = used; + for (x=0; x < 8 - (save % 8); x++) { if (result != 0) result[used] = ' ';