~ubuntu-branches/debian/sid/claws-mail/sid

« back to all changes in this revision

Viewing changes to src/unmime.c

  • Committer: Package Import Robot
  • Author(s): Ricardo Mones
  • Date: 2015-08-18 16:37:25 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20150818163725-1it32n9mzqkwy2ef
Tags: 3.12.0-1
* New upstream release:
- 'cannot reorganize mailboxes' (Closes: #777208)
- 'dropdown menu bar has disappeared…'(Closes: #778886)
- 'depends on plugins libraries'  (Closes: #779824)
- 'new upstream version (3.12.0)…' (Closes: #793665)
* 14CVE_2010_5109.patch, 15fix_crash_open_folder.patch,
  13desktop_file_categories.patch
- Remove patches applied upstream
* debian/control, debian/copyright, debian/claws-mail-managesieve*
- Add managesieve plugin (new in this release)
* debian/rules
- Set perl-plugin manpage release version automatically
* 12fix_manpage_header.patch
- Update patch to cope with upstream changes
* debian/control, debian/watch
- Update VCS-* and watch URLs (thanks Julian Wollrath)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <ctype.h>
28
28
 
29
29
#include "codeconv.h"
30
 
#include "base64.h"
31
30
#include "quoted-printable.h"
32
31
 
33
32
#define ENCODED_WORD_BEGIN      "=?"
112
111
                encoding = g_ascii_toupper(*(encoding_begin_p + 1));
113
112
 
114
113
                if (encoding == 'B') {
115
 
                        decoded_text = g_malloc
116
 
                                (eword_end_p - (text_begin_p + 1) + 1);
117
 
                        len = base64_decode(decoded_text, text_begin_p + 1,
118
 
                                            eword_end_p - (text_begin_p + 1));
119
 
                        decoded_text[len] = '\0';
 
114
                        gchar *tmp;
 
115
                        tmp = g_strndup(text_begin_p + 1, eword_end_p - (text_begin_p + 1) + 1);
 
116
                        decoded_text = g_base64_decode(tmp, &out_len);
 
117
                        g_free(tmp);
120
118
                } else if (encoding == 'Q') {
121
119
                        decoded_text = g_malloc
122
120
                                (eword_end_p - (text_begin_p + 1) + 1);