Fixed wrong number of attachments display

This commit is contained in:
2024-03-14 21:17:01 +01:00
parent 0b38d54d74
commit fe60aaf0c4
+4
View File
@@ -4447,6 +4447,10 @@ int el_retrieve(LOGBOOK *lbs, int message_id, char *date, char attr_list[MAX_N_A
if (attachment) {
/* break apart attachments */
for (i = 0; i < MAX_ATTACHMENTS; i++)
if (attachment[i] != NULL)
attachment[i][0] = 0;
for (i = 0; i < MAX_ATTACHMENTS; i++) {
attachment[i][0] = 0;
if (i == 0)