[Motiftools-xmt-cvs] CVS: xmt/Xmt Cli.c,1.1.1.1,1.2
Brought to you by:
motiftools
From: Grant M. <grm...@us...> - 2003-10-25 00:42:59
|
Update of /cvsroot/motiftools/xmt/Xmt In directory sc8-pr-cvs1:/tmp/cvs-serv7518 Modified Files: Cli.c Log Message: Avoid index by -1 into buffer Index: Cli.c =================================================================== RCS file: /cvsroot/motiftools/xmt/Xmt/Cli.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** Cli.c 10 Feb 2001 13:41:41 -0000 1.1.1.1 --- Cli.c 25 Oct 2003 00:35:32 -0000 1.2 *************** *** 10,13 **** --- 10,16 ---- * * $Log$ + * Revision 1.2 2003/10/25 00:35:32 grmcdorman + * Avoid index by -1 into buffer + * * Revision 1.1.1.1 2001/02/10 13:41:41 motiftools * Initial import of Xmt310 to CVS *************** *** 744,748 **** /* if last character was \, then this is not the end of the command line */ ! if (cw->cli.escape_newlines && buf[len-1] == '\\') { XtFree(buf); XmTextInsert(w, cw->cli.inputpos+len, "\n"); --- 747,751 ---- /* if last character was \, then this is not the end of the command line */ ! if (len > 0 && cw->cli.escape_newlines && buf[len-1] == '\\') { XtFree(buf); XmTextInsert(w, cw->cli.inputpos+len, "\n"); |