diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2004-11-18 15:36:49 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2004-11-18 15:36:49 +0000 |
commit | 759fce162a764c5f81be9fa0f8b49d772b0c553f (patch) | |
tree | 268eb02f3ac86dffb2d97921b2eb23c7e35eb0a9 | |
parent | d2e76b3bb3f55e48fa05e1f790e8b33123c6e103 (diff) | |
download | ATCD-759fce162a764c5f81be9fa0f8b49d772b0c553f.tar.gz |
ChangeLogTag: Thu Nov 18 09:35:01 2004 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | examples/APG/Processes/Spawn.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/APG/Processes/Spawn.cpp b/examples/APG/Processes/Spawn.cpp index 3e6380db914..ded73d37042 100644 --- a/examples/APG/Processes/Spawn.cpp +++ b/examples/APG/Processes/Spawn.cpp @@ -174,17 +174,17 @@ public: int i = 0; while (true) { - int retval = ACE_OS::read (ACE_STDIN, &str[i], 1); - if (retval > 0) - { - if (str[i] == '\n') - { - str[++i] = 0; - return str; - } - i++; - } - else + int retval = ACE_OS::read (ACE_STDIN, &str[i], 1); + if (retval > 0) + { + if (str[i] == '\n') + { + str[++i] = 0; + return str; + } + i++; + } + else return str; } } |