$NetBSD: patch-ad,v 1.2 2006/04/20 23:22:04 martin Exp $

--- ataprint.c.orig	2004-06-04 22:59:16.000000000 +0200
+++ ataprint.c	2006-04-21 01:10:45.000000000 +0200
@@ -90,7 +90,14 @@
   char tmp[65];
 
   n = n > 64 ? 64 : n;
+#ifndef __NetBSD__
   swapbytes(tmp, in, n);
+#else
+  if (isbigendian())
+    strncpy(tmp, in, n);
+  else
+    swapbytes(tmp, in, n);
+#endif
   tmp[n] = '\0';
   trim(out, tmp);
 }
