~ubuntu-branches/ubuntu/gutsy/curl/gutsy-updates

« back to all changes in this revision

Viewing changes to lib/strdup.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-08-01 12:22:30 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070801122230-uaarmp6lo65py9t6
Tags: 7.16.4-1ubuntu1
* Merge with Debian.
  - Drop debian/patches/gnutls-verifications, applied upstream.
  - Remove all stuff which should be reverted according to 7.16.2-6ubuntu4.
  - Remaining change: drop stunnel build dependency.

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: strdup.c,v 1.2 2006-07-17 15:25:37 yangtse Exp $
 
21
 * $Id: strdup.c,v 1.3 2007-05-01 20:50:50 danf Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
#include "setup.h"
38
38
  if (!newstr)
39
39
    return (char *)NULL;
40
40
 
41
 
  strcpy(newstr,str);
 
41
  memcpy(newstr,str,(len+1)*sizeof(char));
42
42
 
43
43
  return newstr;
44
44