diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-28 13:34:28 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-28 13:34:28 +0800 |
commit | 639d9640ee37dea861c8fc76e611e2c9e7405b89 (patch) | |
tree | 7cafebfbf7c2b39c243bc7b4e236b946b8c45465 | |
parent | 8dc05d22ea78cf3c45978e90fecfb17807fbce56 (diff) | |
download | pttbbs-639d9640ee37dea861c8fc76e611e2c9e7405b89.tar pttbbs-639d9640ee37dea861c8fc76e611e2c9e7405b89.tar.gz pttbbs-639d9640ee37dea861c8fc76e611e2c9e7405b89.tar.bz2 pttbbs-639d9640ee37dea861c8fc76e611e2c9e7405b89.tar.lz pttbbs-639d9640ee37dea861c8fc76e611e2c9e7405b89.tar.xz pttbbs-639d9640ee37dea861c8fc76e611e2c9e7405b89.tar.zst pttbbs-639d9640ee37dea861c8fc76e611e2c9e7405b89.zip |
fix argument index
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4328 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | trans/wretch_trans.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/trans/wretch_trans.c b/trans/wretch_trans.c index 9d6ad680..6a0021bf 100644 --- a/trans/wretch_trans.c +++ b/trans/wretch_trans.c @@ -131,9 +131,8 @@ int main(int argc, char *argv[]) return 0; } - - path = argv[1]; - board = argv[2]; + path = argv[optind]; + board = argv[optind+1]; if (!dashd(path)) { fprintf(stderr, "%s is not directory\n", path); |