Fixed bug in el_delete_message

SVN revision: 617
This commit is contained in:
Stefan Ritt 2003-10-26 15:55:46 +00:00
parent 6468c76c16
commit 0ffa545957

View File

@ -6,10 +6,13 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.150 2003/10/26 15:55:46 midas
Fixed bug in el_delete_message
Revision 1.149 2003/10/24 20:14:45 midas Revision 1.149 2003/10/24 20:14:45 midas
- user cannot change login name if already existing - user cannot change login name if already existing
- user cannot search in logbooks of which he has no access - user cannot search in logbooks of which he has no access
- added date of last entry in logbook selection pageg - added date of last entry in logbook selection page
Revision 1.148 2003/10/01 06:52:01 midas Revision 1.148 2003/10/01 06:52:01 midas
Started to implement synchronize Started to implement synchronize
@ -3160,7 +3163,7 @@ char *message, attachment_all[64*MAX_ATTACHMENTS];
message = malloc(TEXT_SIZE+1000); message = malloc(TEXT_SIZE+1000);
lseek(fh, lbs->el_index[index].offset, SEEK_SET); lseek(fh, lbs->el_index[index].offset, SEEK_SET);
i = read(fh, message, sizeof(message)-1); i = read(fh, message, TEXT_SIZE+1000-1);
if (i <= 0) if (i <= 0)
{ {
free(message); free(message);