From: William F. <wsf...@us...> - 2006-10-06 21:48:04
|
Update of /cvsroot/swig/SWIG/Source/DOH In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9892/Source/DOH Modified Files: string.c Log Message: Fix #1450661. String_seek truncating strings. Index: string.c =================================================================== RCS file: /cvsroot/swig/SWIG/Source/DOH/string.c,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** string.c 24 Sep 2006 17:09:31 -0000 1.29 --- string.c 6 Oct 2006 21:48:00 -0000 1.30 *************** *** 454,459 **** if (nsp < 0) nsp = 0; ! if (s->len > 0 && nsp >= s->len) ! nsp = s->len-1; inc = (nsp > s->sp) ? 1 : -1; --- 454,459 ---- if (nsp < 0) nsp = 0; ! if (s->len > 0 && nsp > s->len) ! nsp = s->len; inc = (nsp > s->sp) ? 1 : -1; |