summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Gras <beng@shrike-systems.com>2014-11-03 23:03:06 +0100
committerChris Johns <chrisj@rtems.org>2014-11-04 09:19:52 +1100
commit0f93ea65b63212e63b9ed89626645c2321fa5c22 (patch)
treecc5527b16f1e84c6cef63d595d59aaf7559ee1e3
parenttypo (diff)
downloadrtems-tools-0f93ea65b63212e63b9ed89626645c2321fa5c22.tar.bz2
fix buffer size problem
(triggered runtime error on my machine)
-rw-r--r--rtemstoolkit/rld-path.cpp2
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;