Module Name:    src
Committed By:   manu
Date:           Fri Jun 20 15:22:01 UTC 2014

Modified Files:
        src/usr.bin/extattr: getextattr.c

Log Message:
Use returned size and not buffer max length when displaying attribute
>From Thomas Schmitt <scdbac...@gmx.net>


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/extattr/getextattr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/extattr/getextattr.c
diff -u src/usr.bin/extattr/getextattr.c:1.11 src/usr.bin/extattr/getextattr.c:1.12
--- src/usr.bin/extattr/getextattr.c:1.11	Fri Jun 20 14:55:31 2014
+++ src/usr.bin/extattr/getextattr.c	Fri Jun 20 15:22:01 2014
@@ -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 @@ main(int argc, char *argv[])
 				hexdump(buf, error);
 				continue;
 			} else {
-				fwrite(buf, buflen, 1, stdout);
+				fwrite(buf, error, 1, stdout);
 				printf("\n");
 				continue;
 			}

Reply via email to