summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rwxr-xr-xsrc/tools/trace/ppetracepp.C2
-rwxr-xr-xsrc/tools/trace/tracehash.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/trace/ppetracepp.C b/src/tools/trace/ppetracepp.C
index f9c088d4..005d7b37 100755
--- a/src/tools/trace/ppetracepp.C
+++ b/src/tools/trace/ppetracepp.C
@@ -921,7 +921,7 @@ if (!hashtab.empty())
time_t tt = time(NULL);
sprintf(buf, "%s", asctime(localtime(&tt)));
buf[strlen(buf)-1] = '\0'; // chop off extra newline
- fprintf(TRC, "#FSP_TRACE_v2|||%s|||BUILD:%s", buf, pwd.c_str());
+ fprintf(TRC, "#FSP_TRACE_v2|||%s|||BUILD:%.120s", buf, pwd.c_str());
string srch_str = "||";
srch_str += source;
diff --git a/src/tools/trace/tracehash.pl b/src/tools/trace/tracehash.pl
index fb4c6a3a..2b0480af 100755
--- a/src/tools/trace/tracehash.pl
+++ b/src/tools/trace/tracehash.pl
@@ -186,7 +186,7 @@ determine_args();
if (defined $dir)
{
- $build = $build . $dir; # default to put at top of string file
+ $build = $build . substr($dir, 0, 120); # default to put at top of string file
if($collect)
{
collect_files($dir);
OpenPOWER on IntegriCloud