~ubuntu-branches/ubuntu/hoary/courier/hoary

« back to all changes in this revision

Viewing changes to rfc2045/rfc2045acchk.c

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-11-29 12:09:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041129120934-kkn0xj11j0n1n6lo
Tags: 0.47-3ubuntu1
* Nathaniel McCallum
 - debian/*.init: pretty initscripts
 - debian/control: version depends on lsb-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include        <stdlib.h>
15
15
#include        <stdio.h>
16
16
 
17
 
/* $Id: rfc2045acchk.c,v 1.7 2003/03/07 00:47:31 mrsam Exp $ */
 
17
/* $Id: rfc2045acchk.c,v 1.8 2004/06/27 02:28:22 mrsam Exp $ */
18
18
 
19
19
extern void rfc2045_enomem();
20
20
 
54
54
                && !rfc2045_getattr(p->content_type_attr, "charset")
55
55
                && strncasecmp(p->content_type, "text/", 5) == 0)
56
56
        {
57
 
                rfc2045_setattr(&p->content_type_attr, "charset",
58
 
                        rfc2045_getdefaultcharset());
 
57
                if (rfc2045_attrset(&p->content_type_attr, "charset",
 
58
                                    rfc2045_getdefaultcharset()) < 0)
 
59
                        rfc2045_enomem();
59
60
 
60
61
                if (p->mime_version
61
62