summaryrefslogtreecommitdiff
path: root/src/ilasm/main.cpp
diff options
context:
space:
mode:
authorEric Mellino <erme@microsoft.com>2017-02-24 16:48:50 -0800
committerEric Mellino <erme@microsoft.com>2017-02-24 16:48:50 -0800
commitf30a73fd453ecb104889c40a2ea92b1b72e99edb (patch)
tree38515dd0341e5e7f7c03a17688d7e2df9be94ff6 /src/ilasm/main.cpp
parent65053424c296f1fecb4c293276771accfe838e62 (diff)
downloadcoreclr-f30a73fd453ecb104889c40a2ea92b1b72e99edb.tar.gz
coreclr-f30a73fd453ecb104889c40a2ea92b1b72e99edb.tar.bz2
coreclr-f30a73fd453ecb104889c40a2ea92b1b72e99edb.zip
Increase the length of allowed parameters in ilasm.
The way this code is structured prevents parameters longer than 128 characters from being passed. This change simply increases that to 1024 characters, although a more robust change could be made in the future to account for platform differences.
Diffstat (limited to 'src/ilasm/main.cpp')
-rw-r--r--src/ilasm/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ilasm/main.cpp b/src/ilasm/main.cpp
index 35f4545a05..912ccce859 100644
--- a/src/ilasm/main.cpp
+++ b/src/ilasm/main.cpp
@@ -106,7 +106,7 @@ extern "C" int _cdecl wmain(int argc, __in WCHAR **argv)
{
int i, NumFiles = 0, NumDeltaFiles = 0;
bool IsDLL = false, IsOBJ = false;
- char szOpt[128];
+ char szOpt[1024];
Assembler *pAsm;
MappedFileStream *pIn;
AsmParse *pParser;