openbsd-ports/net/netatalk/reference/patches/patch-libatp-atpbprintc
naddy d7260847a5 Re-import netatalk-990130 into subdirectory.
Submitted by maintainer Ian McWilliam <i.mcwilliam@uws.edu.au>.
2002-07-23 11:47:35 +00:00

32 lines
686 B
Plaintext

--- libatalk/atp/atp_bprint.c.orig Thu Mar 19 08:43:09 1992
+++ libatalk/atp/atp_bprint.c Thu Nov 11 14:04:18 1999
@@ -24,8 +24,10 @@
#define BPLEN 48
#include <stdio.h>
#include <ctype.h>
+#include <string.h>
char hexdig[] = "0123456789abcdef";
+void
bprint( data, len )
char *data;
int len;
@@ -33,7 +35,7 @@
char out[ BPLEN ];
int i = 0;
- bzero( out, BPLEN );
+ memset( out, 0, BPLEN );
for ( ;; ) {
if ( len < 1 ) {
printf( "\t%s\n", ( i == 0 ) ? "(end)" : out );
@@ -53,7 +55,7 @@
if ( i > BPLEN - 2 ) {
printf( "\t%s\n", out );
- bzero( out, BPLEN );
+ memset( out, 0, BPLEN );
i = 0;
continue;
}