GNU General Public License for more details.
*/
-#include "opkg.h"
+#include "includes.h"
#include <stdarg.h>
#include "sprintf_alloc.h"
/* ripped more or less straight out of PRINTF(3) */
- if ((new_str = malloc(size)) == NULL)
+ if ((new_str = calloc(1, size)) == NULL)
return -1;
*str = new_str;