uschar *s, *t;
struct hostent *hosts;
struct in_addr addr;
-unsigned long time_msec;
+unsigned long time_msec = 0; /* init to quieten dumb static analysis */
if (slow_lookup_log) time_msec = get_time_in_ms();
FILE *mime_stream = NULL;
uschar *mime_current_boundary = NULL;
-static int mime_header_list_size = sizeof(mime_header_list)/sizeof(mime_header);
+
+static mime_header mime_header_list[] = {
+ { US"content-type:", 13, &mime_content_type },
+ { US"content-disposition:", 20, &mime_content_disposition },
+ { US"content-transfer-encoding:", 26, &mime_content_transfer_encoding },
+ { US"content-id:", 11, &mime_content_id },
+ { US"content-description:", 20, &mime_content_description }
+};
+
+static int mime_header_list_size = nelem(mime_header_list);
static mime_parameter mime_parameter_list[] = {
{ US"name=", 5, &mime_filename },
uschar ** value;
} mime_header;
-static mime_header mime_header_list[] = {
- { US"content-type:", 13, &mime_content_type },
- { US"content-disposition:", 20, &mime_content_disposition },
- { US"content-transfer-encoding:", 26, &mime_content_transfer_encoding },
- { US"content-id:", 11, &mime_content_id },
- { US"content-description:", 20, &mime_content_description }
-};
-
-
-
typedef struct mime_parameter {
uschar * name;
if (bounce_return_body && message_file)
{
- int ch;
- enum {midline, beginline, haddot} state = beginline;
BOOL enddot = dot_ends && message_file == stdin;
uschar * buf = store_get(bounce_return_linesize_limit+2);
if (firstline) fprintf(f, "%s", CS firstline);
- while (fgets(buf, bounce_return_linesize_limit+2, message_file))
+ while (fgets(CS buf, bounce_return_linesize_limit+2, message_file))
{
int len;
if (size_limit > 0 && len > size_limit - written)
{
buf[size_limit - written] = '\0';
- fputs(buf, f);
+ fputs(CS buf, f);
break;
}
- fputs(buf, f);
+ fputs(CS buf, f);
}
}
#ifdef EXPERIMENTAL_DMARC
if (environ)
{
uschar **p;
- size_t n;
for (p = USS environ; *p; p++) ;
- n = p - USS environ;
qsort(environ, p - USS environ, sizeof(*p), string_compare_by_pointer);
for (p = USS environ; *p; p++)
{
if (no_labels) *(Ustrchr(*p, '=')) = '\0';
- puts(*p);
+ puts(CS *p);
}
}
return;
#ifdef EXIM_HAVE_RSA_GENKEY_EX
if ( !BN_set_word(bn, (unsigned long)RSA_F4)
+ || !(rsa_key = RSA_new())
|| !RSA_generate_key_ex(rsa_key, keylength, bn, NULL)
)
#else