Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/extattr Fix previous broken commit for extended attr...



details:   https://anonhg.NetBSD.org/src/rev/0b0dbd17406e
branches:  trunk
changeset: 766577:0b0dbd17406e
user:      manu <manu%NetBSD.org@localhost>
date:      Tue Jun 28 07:24:14 2011 +0000

description:
Fix previous broken commit for extended attribute listing.

diffstat:

 usr.bin/extattr/getextattr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 510bac70f9ad -r 0b0dbd17406e usr.bin/extattr/getextattr.c
--- a/usr.bin/extattr/getextattr.c      Tue Jun 28 07:16:53 2011 +0000
+++ b/usr.bin/extattr/getextattr.c      Tue Jun 28 07:24:14 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getextattr.c,v 1.5 2011/06/27 16:34:48 manu Exp $      */
+/*     $NetBSD: getextattr.c,v 1.6 2011/06/28 07:24:14 manu Exp $      */
 
 /*-
  * Copyright (c) 2002, 2003 Networks Associates Technology, Inc.
@@ -237,8 +237,8 @@
                                break;
                        if (!flag_quiet)
                                printf("%s\t", argv[arg_counter]);
-                       for (i = 0; i < error; i += buf[i] + 1)
-                           printf("%s%s", i ? "\t" : "", buf + i + 1);
+                       for (i = 0; i < error; i += strlen(buf + i) + 1)
+                           printf("%s%s", i ? "\t" : "", buf + i);
                        printf("\n");
                        continue;
                case EAGET:



Home | Main Index | Thread Index | Old Index