diff options
author | Benoit Foucher <benoit@zeroc.com> | 2003-04-03 16:18:49 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2003-04-03 16:18:49 +0000 |
commit | 09f9b4a21518f5f2e052ee756e37c70d92f21b95 (patch) | |
tree | e8c467a1b2ae95cf6bbb219f9633d21ece9e3322 /cpp/src | |
parent | compilerfix (diff) | |
download | ice-09f9b4a21518f5f2e052ee756e37c70d92f21b95.tar.bz2 ice-09f9b4a21518f5f2e052ee756e37c70d92f21b95.tar.xz ice-09f9b4a21518f5f2e052ee756e37c70d92f21b95.zip |
Fixed bug in command line option parsing
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IcePack/IcePackNode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IcePack/IcePackNode.cpp b/cpp/src/IcePack/IcePackNode.cpp index 0c23dd7e92f..ea75fa0adb4 100644 --- a/cpp/src/IcePack/IcePackNode.cpp +++ b/cpp/src/IcePack/IcePackNode.cpp @@ -140,7 +140,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator, const Free descriptor = argv[++i]; - while(argv[++i][0] != '-' && i < argc) + while(i + 1 < argc && argv[++i][0] != '-') { targets.push_back(argv[i]); } |