aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gprofng/src/collctrl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprofng/src/collctrl.cc b/gprofng/src/collctrl.cc
index d341cb0..2fa9a88 100644
--- a/gprofng/src/collctrl.cc
+++ b/gprofng/src/collctrl.cc
@@ -2422,7 +2422,7 @@ Coll_Ctrl::preprocess_names ()
}
else
{
- expt_dir = dbe_strndup (expt_name, s - expt_name - 1);
+ expt_dir = dbe_strndup (expt_name, s - expt_name);
base_name = strdup (s + 1);
}