~ubuntu-branches/ubuntu/maverick/libdbi/maverick-proposed

« back to all changes in this revision

Viewing changes to src/asprintf.c

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Goirand
  • Date: 2007-11-26 05:53:13 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071126055313-29bzt00k533rgkg8
Tags: 0.8.2-3
* New maintainer (Closes: #444424)
* Now cleaning everything correctly on the clean target
* Now managing updates of config.sub and config.guess correctly
* Removed useless postinst and postrm from debian folder as they are
  generated by dh_makeshlibs anyway
* Cleaned a bit the debian/rules for readability
* Reviewed the debian/copyright for accuracy

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * ripped from gcc
3
 
 * $Id: asprintf.c,v 1.2 2002/03/26 03:42:41 dap Exp $
 
3
 * $Id: asprintf.c,v 1.4 2005/07/28 19:40:48 mhoenicka Exp $
4
4
 */
5
5
 
6
6
#ifdef HAVE_CONFIG_H
7
7
#include <config.h>
8
8
#endif
9
9
 
 
10
#include <stdio.h>
10
11
#include <stdlib.h>
11
12
#include <string.h>
12
13
#include <stdarg.h>
87
88
                }
88
89
        }
89
90
 
90
 
        *result = (char*) malloc(total_width);
 
91
        *result = malloc(total_width);
91
92
 
92
93
        if (*result != NULL) {
93
94
                return vsprintf(*result, format, *args);