Fixed crash with very long entries

SVN revision: 2141
This commit is contained in:
Stefan Ritt 2008-11-18 11:05:41 +00:00
parent 2dddc4b173
commit c046064399

View File

@ -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