summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ServerI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2010-06-30 18:21:09 -0400
committerBernard Normier <bernard@zeroc.com>2010-06-30 18:21:09 -0400
commitb72e62f3f309c78cfed28a676beec9e19306e9d8 (patch)
tree11bb4faae8e63b3a62920bdcff803996dfd8e5a9 /cpp/src/IceGrid/ServerI.cpp
parentAdded test for None keyword (diff)
downloadice-b72e62f3f309c78cfed28a676beec9e19306e9d8.tar.bz2
ice-b72e62f3f309c78cfed28a676beec9e19306e9d8.tar.xz
ice-b72e62f3f309c78cfed28a676beec9e19306e9d8.zip
Fixed bug #4798
Diffstat (limited to 'cpp/src/IceGrid/ServerI.cpp')
-rwxr-xr-x[-rw-r--r--]cpp/src/IceGrid/ServerI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ServerI.cpp b/cpp/src/IceGrid/ServerI.cpp
index e46e31ba5eb..8788129e87d 100644..100755
--- a/cpp/src/IceGrid/ServerI.cpp
+++ b/cpp/src/IceGrid/ServerI.cpp
@@ -300,7 +300,7 @@ struct EnvironmentEval : std::unary_function<string, string>
}
string variable = v.substr(beg + 1, end - beg - 1);
DWORD ret = GetEnvironmentVariableW(IceUtil::stringToWstring(variable).c_str(), &buf[0], static_cast<DWORD>(buf.size()));
- string valstr = (ret > 0 && ret < sizeof(buf.size())) ? IceUtil::wstringToString(&buf[0]) : string("");
+ string valstr = (ret > 0 && ret < buf.size()) ? IceUtil::wstringToString(&buf[0]) : string("");
v.replace(beg, end - beg + 1, valstr);
beg += valstr.size();
}