[PATCH] D15831: [Clang/Support/Windows/Unix] Command lines created by clang may exceed the command length limit set by the OS

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 11:35:35 PST 2016


probinson added inline comments.

================
Comment at: lib/Support/Unix/Program.inc:459
@@ -458,3 +458,3 @@
 
-  size_t ArgLength = 0;
+  size_t ArgLength = strlen(Program.str().c_str()) + 1;
   for (ArrayRef<const char*>::iterator I = Args.begin(), E = Args.end();
----------------
Use Program.size() instead of strlen.


Repository:
  rL LLVM

http://reviews.llvm.org/D15831





More information about the llvm-commits mailing list