mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Fixed bug with unterminated string
SVN revision: 864
This commit is contained in:
parent
81bf929388
commit
87594fb69f
@ -6,6 +6,9 @@
|
|||||||
Contents: Conversion program for ELOG messages
|
Contents: Conversion program for ELOG messages
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.5 2004/04/15 06:48:43 midas
|
||||||
|
Fixed bug with unterminated string
|
||||||
|
|
||||||
Revision 1.4 2004/02/17 11:19:49 midas
|
Revision 1.4 2004/02/17 11:19:49 midas
|
||||||
Fixed compiler warnings
|
Fixed compiler warnings
|
||||||
|
|
||||||
@ -504,6 +507,7 @@ INT el_search_message(char *tag, int *fh, BOOL walk, BOOL first)
|
|||||||
close(lfh);
|
close(lfh);
|
||||||
return EL_FILE_ERROR;
|
return EL_FILE_ERROR;
|
||||||
}
|
}
|
||||||
|
str[15] = 0;
|
||||||
lseek(lfh, -15, SEEK_CUR);
|
lseek(lfh, -15, SEEK_CUR);
|
||||||
|
|
||||||
if (strncmp(str, "$Start$: ", 9) == 0) {
|
if (strncmp(str, "$Start$: ", 9) == 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user