From 1bcd71834b3fb31267a197a4866ad0dfde68d5e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 8 Dec 2004 03:51:25 +0000 Subject: [PATCH] I can even mess up command line parsing :) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10376 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/addattr/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/bin/addattr/main.cpp b/src/apps/bin/addattr/main.cpp index 397ddb6267..6dee6e0574 100644 --- a/src/apps/bin/addattr/main.cpp +++ b/src/apps/bin/addattr/main.cpp @@ -121,14 +121,14 @@ main(int argc, char *argv[]) type_code attrType = B_STRING_TYPE; - int32 i = 2; + int32 i = 1; if (!strcmp(argv[1], "-t")) { // Get the attribute type if (typeForString(argv[2], &attrType) != B_OK) invalidAttrType(argv[2]); - i++; + i += 2; } const char *attrName = argv[i++];