mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed error with gcc 3.4, thanks to Recai Oktas
SVN revision: 992
This commit is contained in:
parent
d5df7c0337
commit
0456bcfce4
12
src/elconv.c
12
src/elconv.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Conversion program for ELOG messages
|
Contents: Conversion program for ELOG messages
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.6 2004/07/28 18:51:57 midas
|
||||||
|
Fixed error with gcc 3.4, thanks to Recai Oktas
|
||||||
|
|
||||||
Revision 1.5 2004/04/15 06:48:43 midas
|
Revision 1.5 2004/04/15 06:48:43 midas
|
||||||
Fixed bug with unterminated string
|
Fixed bug with unterminated string
|
||||||
|
|
||||||
@ -293,7 +296,7 @@ INT el_search_message(char *tag, int *fh, BOOL walk, BOOL first)
|
|||||||
struct tm *tms, ltms;
|
struct tm *tms, ltms;
|
||||||
time_t lt, ltime, lact;
|
time_t lt, ltime, lact;
|
||||||
char str[256], file_name[256], dir[256];
|
char str[256], file_name[256], dir[256];
|
||||||
char *file_list;
|
char *file_list, *tag_dir;
|
||||||
|
|
||||||
did_walk = 0;
|
did_walk = 0;
|
||||||
ltime = lfh = 0;
|
ltime = lfh = 0;
|
||||||
@ -303,9 +306,10 @@ INT el_search_message(char *tag, int *fh, BOOL walk, BOOL first)
|
|||||||
|
|
||||||
/* check tag for direction */
|
/* check tag for direction */
|
||||||
direction = 0;
|
direction = 0;
|
||||||
if (strpbrk(tag, "+-")) {
|
tag_dir = strpbrk(tag, "+-");
|
||||||
direction = atoi(strpbrk(tag, "+-"));
|
if (tag_dir) {
|
||||||
*strpbrk(tag, "+-") = 0;
|
direction = atoi(tag_dir);
|
||||||
|
*tag_dir = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if tag is given, open file directly */
|
/* if tag is given, open file directly */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user