Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/usr.bin/extattr Pull up revision 1.10 (requested by manu ...
details: https://anonhg.NetBSD.org/src/rev/a44de082a896
branches: netbsd-6
changeset: 774248:a44de082a896
user: jdc <jdc%NetBSD.org@localhost>
date: Sun Jun 24 16:35:30 2012 +0000
description:
Pull up revision 1.10 (requested by manu in ticket #351).
Fix off-by-one in hexdump display (getextattr -x), which displayed a
trailing garbage byte.
diffstat:
usr.bin/extattr/getextattr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r b87d66a3c6d5 -r a44de082a896 usr.bin/extattr/getextattr.c
--- a/usr.bin/extattr/getextattr.c Sun Jun 24 16:31:52 2012 +0000
+++ b/usr.bin/extattr/getextattr.c Sun Jun 24 16:35:30 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getextattr.c,v 1.9 2011/09/16 15:39:25 joerg Exp $ */
+/* $NetBSD: getextattr.c,v 1.9.4.1 2012/06/24 16:35:30 jdc Exp $ */
/*-
* Copyright (c) 2002, 2003 Networks Associates Technology, Inc.
@@ -143,14 +143,14 @@
for (i = 0; i < len; i += 16) {
printf(" %03x ", i);
for (j = 0; j < 16; j++) {
- if (i + j > len)
+ if (i + j >= len)
printf(" ");
else
printf("%02x ", addr[i + j] & 0xff);
}
printf(" ");
for (j = 0; j < 16; j++) {
- if (i + j > len)
+ if (i + j >= len)
printf(" ");
else
printf("%c", HEXDUMP_PRINT(addr[i + j]));
Home |
Main Index |
Thread Index |
Old Index