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
|
$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);*/
|