Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/extattr Use returned size and not buffer max length ...
details: https://anonhg.NetBSD.org/src/rev/9f98b9e17e6e
branches: trunk
changeset: 330071:9f98b9e17e6e
user: manu <manu%NetBSD.org@localhost>
date: Fri Jun 20 15:22:01 2014 +0000
description:
Use returned size and not buffer max length when displaying attribute
>From Thomas Schmitt <scdbackup%gmx.net@localhost>
diffstat:
usr.bin/extattr/getextattr.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 551021b85a28 -r 9f98b9e17e6e usr.bin/extattr/getextattr.c
--- a/usr.bin/extattr/getextattr.c Fri Jun 20 14:55:31 2014 +0000
+++ b/usr.bin/extattr/getextattr.c Fri Jun 20 15:22:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getextattr.c,v 1.11 2014/06/20 14:55:31 manu Exp $ */
+/* $NetBSD: getextattr.c,v 1.12 2014/06/20 15:22:01 manu Exp $ */
/*-
* Copyright (c) 2002, 2003 Networks Associates Technology, Inc.
@@ -406,7 +406,7 @@
hexdump(buf, error);
continue;
} else {
- fwrite(buf, buflen, 1, stdout);
+ fwrite(buf, error, 1, stdout);
printf("\n");
continue;
}
Home |
Main Index |
Thread Index |
Old Index