From: Todd L. <jt...@us...> - 2002-07-28 23:29:53
|
Update of /cvsroot/replaypc/replaypc In directory usw-pr-cvs1:/tmp/cvs-serv14533 Modified Files: rtv.c Log Message: rtv_split_lines() -- don't store a pointer to the final empty part-line (the NUL after the last newline); don't need it, and space wasn't being allocated for it -- potential crash Index: rtv.c =================================================================== RCS file: /cvsroot/replaypc/replaypc/rtv.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** rtv.c 19 Jun 2002 09:49:35 -0000 1.5 --- rtv.c 28 Jul 2002 23:29:50 -0000 1.6 *************** *** 192,197 **** *p = '\0'; p++; ! dst[i] = p; ! i++; } } --- 192,199 ---- *p = '\0'; p++; ! if (*p) { ! dst[i] = p; ! i++; ! } } } |