~ubuntu-branches/ubuntu/precise/curl/precise-proposed

« back to all changes in this revision

Viewing changes to tests/server/getpart.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2011-11-25 17:30:45 UTC
  • mfrom: (3.4.23 sid)
  • Revision ID: package-import@ubuntu.com-20111125173045-2l3ni88jv16kath0
Tags: 7.22.0-3ubuntu1
* Merge from Debian unstable, remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Add new libcurl3-udeb package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
9
9
 *
10
10
 * This software is licensed as described in the file COPYING, which
11
11
 * you should have received as part of this distribution. The terms
49
49
#ifdef DEBUG_GETPART
50
50
#define show(x) printf x
51
51
#else
52
 
#define show(x)
 
52
#define show(x) Curl_nop_stmt
53
53
#endif
54
54
 
55
55
#if defined(_MSC_VER) && defined(_DLL)
166
166
 
167
167
  if(src_b64) {
168
168
    /* base64 decode the given buffer */
169
 
    src_len = Curl_base64_decode(src_buf, &buf64.as_uchar);
 
169
    int error = (int) Curl_base64_decode(src_buf, &buf64.as_uchar, &src_len);
 
170
    if(error)
 
171
      return GPE_OUT_OF_MEMORY;
170
172
    src_buf = buf64.as_char;
171
173
    if(!src_len || !src_buf) {
172
174
      /*