mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed crash with very long entries
SVN revision: 2141
This commit is contained in:
parent
2dddc4b173
commit
c046064399
@ -4587,7 +4587,7 @@ int el_submit(LOGBOOK * lbs, int message_id, BOOL bedit, char *date, char attr_n
|
||||
}
|
||||
|
||||
lseek(fh, lbs->el_index[index].offset, SEEK_SET);
|
||||
i = my_read(fh, message, TEXT_SIZE + 100);
|
||||
i = my_read(fh, message, TEXT_SIZE + 99);
|
||||
if (i >= 0)
|
||||
message[i] = 0;
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user