0db35661ff
provided by Jens A Nilsson in pkg/11628: Xbuffy is a XBiff-type program with a lot of new options.
30 lines
911 B
Text
30 lines
911 B
Text
$NetBSD: patch-ad,v 1.1.1.1 2000/12/05 02:04:49 wiz Exp $
|
|
|
|
--- libdyn/dyn_delete.c.orig Tue Aug 10 04:37:42 1999
|
|
+++ libdyn/dyn_delete.c
|
|
@@ -11,6 +11,7 @@
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
|
|
#include "dynP.h"
|
|
|
|
@@ -46,7 +47,7 @@
|
|
else {
|
|
if (obj->debug)
|
|
fprintf(stderr,
|
|
- "dyn: delete: copying %d bytes from %d + %d to + %d.\n",
|
|
+ "dyn: delete: copying %d bytes from %p + %d to + %d.\n",
|
|
obj->el_size*(obj->num_el - index), obj->array,
|
|
(index+1)*obj->el_size, index*obj->el_size);
|
|
|
|
@@ -61,7 +62,7 @@
|
|
if (obj->paranoid) {
|
|
if (obj->debug)
|
|
fprintf(stderr,
|
|
- "dyn: delete: zeroing %d bytes from %d + %d\n",
|
|
+ "dyn: delete: zeroing %d bytes from %p + %d\n",
|
|
obj->el_size, obj->array,
|
|
obj->el_size*(obj->num_el - 1));
|
|
/* bzero(obj->array + obj->el_size*(obj->num_el - 1), obj->el_size);*/
|