Module Name: src Committed By: manu Date: Tue Jun 28 07:24:15 UTC 2011
Modified Files: src/usr.bin/extattr: getextattr.c Log Message: Fix previous broken commit for extended attribute listing. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 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.5 src/usr.bin/extattr/getextattr.c:1.6 --- src/usr.bin/extattr/getextattr.c:1.5 Mon Jun 27 16:34:48 2011 +++ src/usr.bin/extattr/getextattr.c Tue Jun 28 07:24:14 2011 @@ -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: