aboutsummaryrefslogtreecommitdiff
path: root/mail/xbuffy/files/patch-af
blob: a1d43fb9f5864c2a8f03d2f61deed1983e756d12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
*** libdyn/dyn_insert.c.orig	Fri Dec 10 14:56:04 1993
--- libdyn/dyn_insert.c	Wed Jun 21 16:47:42 1995
***************
*** 11,16 ****
--- 11,17 ----
   */
  
  #include <stdio.h>
+ #include <string.h>
  #include "dynP.h"
  
  int DynInsert(obj, index, els, num)
***************
*** 35,41 ****
       }
  
       if (obj->debug)
! 	  fprintf(stderr,"dyn: insert: Moving %d bytes from %d + %d to + %d\n",
  		  (obj->num_el-index)*obj->el_size, obj->array,
  		  obj->el_size*index, obj->el_size*(index+num));
  
--- 36,42 ----
       }
  
       if (obj->debug)
! 	  fprintf(stderr,"dyn: insert: Moving %d bytes from %p + %d to + %d\n",
  		  (obj->num_el-index)*obj->el_size, obj->array,
  		  obj->el_size*index, obj->el_size*(index+num));
  
***************
*** 46,52 ****
  	   (obj->num_el-index)*obj->el_size);
  
       if (obj->debug)
! 	  fprintf(stderr, "dyn: insert: Copying %d bytes from %d to %d + %d\n",
  		  obj->el_size*num, els, obj->array, obj->el_size*index);
  
       bcopy(els, obj->array + obj->el_size*index, obj->el_size*num);
--- 47,53 ----
  	   (obj->num_el-index)*obj->el_size);
  
       if (obj->debug)
! 	  fprintf(stderr, "dyn: insert: Copying %d bytes from %p to %p + %d\n",
  		  obj->el_size*num, els, obj->array, obj->el_size*index);
  
       bcopy(els, obj->array + obj->el_size*index, obj->el_size*num);