[rtems-tools commit] fix buffer size problem
Chris Johns
chrisj at rtems.org
Mon Nov 3 22:10:38 UTC 2014
Module: rtems-tools
Branch: master
Commit: 0f93ea65b63212e63b9ed89626645c2321fa5c22
Changeset: http://git.rtems.org/rtems-tools/commit/?id=0f93ea65b63212e63b9ed89626645c2321fa5c22
Author: Ben Gras <beng at shrike-systems.com>
Date: Mon Nov 3 23:03:06 2014 +0100
fix buffer size problem
(triggered runtime error on my machine)
---
rtemstoolkit/rld-path.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rtemstoolkit/rld-path.cpp b/rtemstoolkit/rld-path.cpp
index 1410cf8..585bfe2 100644
--- a/rtemstoolkit/rld-path.cpp
+++ b/rtemstoolkit/rld-path.cpp
@@ -113,7 +113,7 @@ namespace rld
try
{
buf = new char[32 * 1024];
- if (!::getcwd (buf, 132 * 1024))
+ if (!::getcwd (buf, 32 * 1024))
throw rld::error (::strerror (errno), "get current working directory");
path_join (buf, path, apath);
delete [] buf;
More information about the vc
mailing list