|
From: Petr S. <pe...@us...> - 2001-04-26 16:21:36
|
Update of /cvsroot/cscope/cscope/src
In directory usw-pr-cvs1:/tmp/cvs-serv22086/src
Modified Files:
find.c
Log Message:
Fixed a SIGSEGV in linemode in find.c. Thanks to OGAWA Hirofumi for pointing out the
problem, where printw was used in line mode to report an error.
Index: find.c
===================================================================
RCS file: /cvsroot/cscope/cscope/src/find.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** find.c 2000/05/31 16:54:10 1.9
--- find.c 2001/04/26 16:21:33 1.10
***************
*** 498,505 ****
progress("Search", searchcount, nsrcfiles);
if (egrep(file, refsfound, "%s <unknown> %ld ") < 0) {
! move(1, 0);
! clrtoeol();
! printw("Cannot open file %s", file);
! refresh();
}
}
--- 498,502 ----
progress("Search", searchcount, nsrcfiles);
if (egrep(file, refsfound, "%s <unknown> %ld ") < 0) {
! posterr ("Cannot open file %s", file);
}
}
|