~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to lib/base64.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-02-08 11:20:41 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080208112041-hed7sb5r6ghmjf8v
Tags: upstream-7.18.0
ImportĀ upstreamĀ versionĀ 7.18.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: base64.c,v 1.44 2007-08-30 20:34:57 danf Exp $
 
21
 * $Id: base64.c,v 1.45 2007-11-05 09:45:09 bagder Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
/* Base64 encoding/decoding
101
101
  numQuantums = (length + equalsTerm) / 4;
102
102
 
103
103
  /* Don't allocate a buffer if the decoded length is 0 */
104
 
  if (numQuantums <= 0)
 
104
  if(numQuantums <= 0)
105
105
    return 0;
106
106
 
107
107
  rawlen = (numQuantums * 3) - equalsTerm;