mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed bug with hierarchical logbooks
SVN revision: 312
This commit is contained in:
parent
27017e3547
commit
016c2ecf7d
5
elogd.c
5
elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 2.118 2003/01/07 08:29:44 midas
|
||||||
|
Fixed bug with hierarchical logbooks
|
||||||
|
|
||||||
Revision 2.117 2003/01/04 20:22:35 midas
|
Revision 2.117 2003/01/04 20:22:35 midas
|
||||||
Added new email options and hierarchical logbooks
|
Added new email options and hierarchical logbooks
|
||||||
|
|
||||||
@ -3848,7 +3851,7 @@ char grplist[MAX_N_LIST][NAME_LENGTH];
|
|||||||
for (n=0 ; lb_list[n].name[0] ; n++);
|
for (n=0 ; lb_list[n].name[0] ; n++);
|
||||||
|
|
||||||
/* make simple list with logbooks */
|
/* make simple list with logbooks */
|
||||||
lbl = malloc(n * sizeof(LBNODE));
|
lbl = calloc(n, sizeof(LBNODE));
|
||||||
for (i=0 ; i<n ; i++)
|
for (i=0 ; i<n ; i++)
|
||||||
strlcpy(lbl[i].name, lb_list[i].name, 256);
|
strlcpy(lbl[i].name, lb_list[i].name, 256);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user