Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/biology/babel/files/patch-block.c
18160 views
1
--- block.c.orig Tue Jan 21 16:52:32 1997
2
+++ block.c Sun Feb 1 22:56:41 2004
3
@@ -7,6 +7,7 @@
4
*/
5
6
#include "bbltyp.h"
7
+#include <stdarg.h>
8
9
/* the routine that does all the work */
10
static int block__doalloc(int, block_ptr *, const char *, va_list);
11
@@ -99,7 +100,7 @@ block__doalloc(int clear, block_ptr *han
12
void *array;
13
14
/* calc how much space we are gonna need */
15
- ap = initap;
16
+ va_copy(ap, initap);
17
size = 0;
18
for(i=0; types[i] != '\0'; i++)
19
{
20
@@ -116,7 +117,7 @@ block__doalloc(int clear, block_ptr *han
21
/* set up the ptrs if we can alloc the memory */
22
if(*handle != NULL)
23
{
24
- ap = initap;
25
+ va_copy(ap, initap);
26
ptr = 0;
27
for(i=0; types[i] != '\0'; i++)
28
{
29
30