~ubuntu-branches/ubuntu/lucid/bogofilter/lucid-security

« back to all changes in this revision

Viewing changes to src/qp.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-06 05:41:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090506054152-tgameecssbuv4np6
Tags: 1.2.0-2ubuntu1
* Merge from debian unstable, remaining changes: LP: #372497
  - don't build qdbm.
  - Don't build tokyocabinet support as it's in universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: qp.c 6228 2005-09-04 14:49:43Z relson $ */
 
1
/* $Id: qp.c 6766 2009-01-12 04:27:36Z relson $ */
2
2
 
3
3
/*****************************************************************************
4
4
 
46
46
uint qp_decode(word_t *word, qp_mode mode)
47
47
{
48
48
    uint size = word->leng;
49
 
    byte *s = word->text;       /* src */
50
 
    byte *d = word->text;       /* dst */
 
49
    byte *s = word->u.text;     /* src */
 
50
    byte *d = word->u.text;     /* dst */
51
51
    byte *e = s + size;         /* end */
52
52
 
53
53
    while (s < e)
77
77
    }
78
78
    /* do not stuff NUL byte here:
79
79
     * if there was one, it has been copied! */
80
 
    return d - word->text;
 
80
    return d - word->u.text;
81
81
}
82
82
 
83
83
/* rfc2047 - QP    [!->@-~]+
115
115
    qp_init();
116
116
 
117
117
    for (i = 0; i < word->leng; i += 1) {
118
 
        byte b = word->text[i];
 
118
        byte b = word->u.text[i];
119
119
        byte v = qp_xlate[b];
120
120
        if (v == 0)
121
121
            switch (b) {