~ubuntu-dev/ubuntu/lucid/mutt/lucid-201002110857

« back to all changes in this revision

Viewing changes to rfc822.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-06-07 17:30:03 UTC
  • mto: (16.2.1 experimental) (2.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090607173003-rg37ui3h2bbv7wl0
Tags: upstream-1.5.19
ImportĀ upstreamĀ versionĀ 1.5.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#define FREE(x) safe_free(x)
34
34
#define ISSPACE isspace
35
35
#define strfcpy(a,b,c) {if (c) {strncpy(a,b,c);a[c-1]=0;}}
36
 
#define STRING 128
 
36
#define LONG_STRING 1024
37
37
#include "rfc822.h"
38
38
#endif
39
39
 
60
60
  "bad address spec"
61
61
};
62
62
 
63
 
void rfc822_dequote_comment (char *s)
 
63
static void rfc822_dequote_comment (char *s)
64
64
{
65
65
  char *w = s;
66
66
 
256
256
                  char *comment, size_t *commentlen, size_t commentmax,
257
257
                  ADDRESS *addr)
258
258
{
259
 
  char token[STRING];
 
259
  char token[LONG_STRING];
260
260
  size_t tokenlen = 0;
261
261
 
262
262
  SKIPWS (s);
304
304
                 char *comment, size_t *commentlen, size_t commentmax,
305
305
                 ADDRESS *addr)
306
306
{
307
 
  char token[STRING];
 
307
  char token[LONG_STRING];
308
308
  size_t tokenlen = 0;
309
309
 
310
310
  s = parse_address (s, token, &tokenlen, sizeof (token) - 1, comment, commentlen, commentmax, addr);
339
339
{
340
340
  int ws_pending, nl;
341
341
  const char *begin, *ps;
342
 
  char comment[STRING], phrase[STRING];
 
342
  char comment[LONG_STRING], phrase[LONG_STRING];
343
343
  size_t phraselen = 0, commentlen = 0;
344
344
  ADDRESS *cur, *last = NULL;
345
345
  
594
594
      {
595
595
        if (*pc == '"' || *pc == '\\')
596
596
        {
597
 
          if (!buflen)
598
 
            goto done;
599
597
          *pbuf++ = '\\';
600
598
          buflen--;
601
599
        }