0db35661ff
provided by Jens A Nilsson in pkg/11628: Xbuffy is a XBiff-type program with a lot of new options.
30 lines
896 B
Text
30 lines
896 B
Text
$NetBSD: patch-ae,v 1.1.1.1 2000/12/05 02:04:49 wiz Exp $
|
|
|
|
--- libdyn/dyn_insert.c.orig Tue Aug 10 04:35:43 1999
|
|
+++ libdyn/dyn_insert.c
|
|
@@ -11,6 +11,7 @@
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
#include "dynP.h"
|
|
|
|
int DynInsert(obj, index, els, num)
|
|
@@ -35,7 +36,7 @@
|
|
}
|
|
|
|
if (obj->debug)
|
|
- fprintf(stderr,"dyn: insert: Moving %d bytes from %d + %d to + %d\n",
|
|
+ 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));
|
|
|
|
@@ -49,7 +50,7 @@
|
|
|
|
|
|
if (obj->debug)
|
|
- fprintf(stderr, "dyn: insert: Copying %d bytes from %d to %d + %d\n",
|
|
+ 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); */
|