summaryrefslogtreecommitdiff
path: root/mail/escape.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/escape.c')
-rw-r--r--mail/escape.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/escape.c b/mail/escape.c
index b93635151..81fdfb1ef 100644
--- a/mail/escape.c
+++ b/mail/escape.c
@@ -1,5 +1,6 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2001, 2002, 2005, 2006 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001, 2002, 2005, 2006,
+ 2007 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -456,20 +457,20 @@ quote0 (msgset_t *mspec, mu_message_t mesg, void *data)
if (*(int*)data)
{
size_t i, num = 0;
- char buf[512];
+ const char *sptr;
mu_message_get_header (mesg, &hdr);
mu_header_get_field_count (hdr, &num);
for (i = 1; i <= num; i++)
{
- mu_header_get_field_name (hdr, i, buf, sizeof buf, NULL);
- if (mail_header_is_visible (buf))
+ mu_header_sget_field_name (hdr, i, &sptr);
+ if (mail_header_is_visible (sptr))
{
char *value;
- fprintf (ofile, "%s%s: ", prefix, buf);
- if (mu_header_aget_value (hdr, buf, &value) == 0)
+ fprintf (ofile, "%s%s: ", prefix, sptr);
+ if (mu_header_aget_value (hdr, sptr, &value) == 0)
{
int i;
char *p, *s;

Return to:

Send suggestions and report system problems to the System administrator.