blob: 5ac6baea287754f4a680cfe9f5cd12dead510789 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$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);
}
|