Path: blob/main/biology/babel/files/patch-block.c
18160 views
--- block.c.orig Tue Jan 21 16:52:32 19971+++ block.c Sun Feb 1 22:56:41 20042@@ -7,6 +7,7 @@3*/45#include "bbltyp.h"6+#include <stdarg.h>78/* the routine that does all the work */9static int block__doalloc(int, block_ptr *, const char *, va_list);10@@ -99,7 +100,7 @@ block__doalloc(int clear, block_ptr *han11void *array;1213/* calc how much space we are gonna need */14- ap = initap;15+ va_copy(ap, initap);16size = 0;17for(i=0; types[i] != '\0'; i++)18{19@@ -116,7 +117,7 @@ block__doalloc(int clear, block_ptr *han20/* set up the ptrs if we can alloc the memory */21if(*handle != NULL)22{23- ap = initap;24+ va_copy(ap, initap);25ptr = 0;26for(i=0; types[i] != '\0'; i++)27{282930