~ubuntu-branches/ubuntu/utopic/altermime/utopic

« back to all changes in this revision

Viewing changes to MIME_headers.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Valroff
  • Date: 2011-05-03 20:05:16 UTC
  • Revision ID: james.westby@ubuntu.com-20110503200516-65pvhk1wlozfickl
Tags: 0.3.10-7
* Update VCS fields
* Add lintian override for false positive spelling error 
* Add patch to Fix compiler warnings for 'unused-but-set-variable' causing
  FTBFS with -Werror and GCC 4.6 (Closes: #625307)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1081
1081
        int linesize=0;
1082
1082
        int totalsize_original=0;
1083
1083
        int result = 0;
1084
 
        int firstline = 1;
1085
1084
        int search_count=0;
1086
1085
        char *tmp;
1087
1086
        char *tmp_original;
1088
1087
        char *fget_result = NULL;
1089
 
        char *headerline_end;
1090
1088
        char *p;
1091
1089
        char *linestart;
1092
1090
        char *lineend;
1184
1182
                                glb.headerline = tmp;
1185
1183
                                totalsize = linesize;
1186
1184
                                PLD_strncpy(glb.headerline, linestart, (linesize +1));
1187
 
                                headerline_end = glb.headerline +totalsize;
1188
1185
                        } // If the global headerline is currently NULL
1189
1186
                        else
1190
1187
                        {
1271
1268
                                FFGET_SDL_MODE = 0;
1272
1269
                        } // FFGET_doubleCR test
1273
1270
 
1274
 
                        firstline = 0;
1275
1271
                } // While reading more headers from the source file.
1276
1272
 
1277
1273
 
2724
2720
{
2725
2721
        /** scan through our headers string looking for information that is
2726
2722
          ** valid **/
2727
 
        char *safeh, *h, *safehl;
 
2723
        char *h, *safehl;
2728
2724
        char *current_header_position;
2729
2725
        int headerlength;
2730
2726
 
2731
2727
        if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIMEH_parse_headers:DEBUG: Start [hinfo=%p]\n",FL, hinfo);
2732
2728
 
2733
 
        safeh = h = headers;
 
2729
        h = headers;
2734
2730
 
2735
2731
        /** Duplicate the headers for processing - this way we don't 'taint' the
2736
2732
        ** original headers during our searching / altering. **/