Commit 8b5ee99b authored by Thomas Roessler's avatar Thomas Roessler

Undo the %l fix. It broke things.

parent 23dcad44
......@@ -445,21 +445,9 @@ hdr_format_str (char *dest,
case 'l':
if (!optional)
{
if (hdr->lines >= 0)
{
snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
snprintf (dest, destlen, fmt, (int) hdr->lines);
}
else
{
int i;
int len = atoi (prefix);
for (i = 0; i < len && i < destlen - 1; i++)
dest[i] = '?';
dest[i] = '\0';
}
{
snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
snprintf (dest, destlen, fmt, (int) hdr->lines);
}
else
{
......
......@@ -50,14 +50,6 @@
#include <sys/types.h>
#include <utime.h>
HEADER *mutt_new_header (void)
{
HEADER *hdr = safe_calloc (1, sizeof (HEADER));
hdr->lines = -1;
return hdr;
}
BODY *mutt_new_body (void)
{
BODY *p = (BODY *) safe_calloc (1, sizeof (BODY));
......@@ -1328,3 +1320,4 @@ const char *mutt_make_version (void)
MUTT_VERSION, ReleaseDate);
return vstring;
}
......@@ -59,6 +59,7 @@ int _mutt_traverse_thread (CONTEXT *ctx, HEADER *hdr, int flag);
#define mutt_new_parameter() safe_calloc (1, sizeof (PARAMETER))
#define mutt_new_header() safe_calloc (1, sizeof (HEADER))
#define mutt_new_envelope() safe_calloc (1, sizeof (ENVELOPE))
#define mutt_new_enter_state() safe_calloc (1, sizeof (ENTER_STATE))
......@@ -84,8 +85,6 @@ ADDRESS *mutt_remove_duplicates (ADDRESS *);
ADDRESS *mutt_expand_aliases (ADDRESS *);
ADDRESS *mutt_parse_adrlist (ADDRESS *, const char *);
HEADER *mutt_new_header(void);
BODY *mutt_make_file_attach (const char *);
BODY *mutt_make_message_attach (CONTEXT *, HEADER *, int);
BODY *mutt_remove_multipart (BODY *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment