From: Josef Weidendorfer Date: Fri, 21 Apr 2006 01:02:13 +0000 (+0000) Subject: Another fix for interactive control, together with X-Git-Tag: svn/VALGRIND_3_2_0~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1eb513b99a3c3d3239f2d237f0cb386d6aa5bde;p=thirdparty%2Fvalgrind.git Another fix for interactive control, together with the --base option, which allows to specify another directory for dumps and control/result files. With "--base=/tmp/foo", we want control/result files in "/tmp", and not in a directory "/tmp/foo/". git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5862 --- diff --git a/callgrind/dump.c b/callgrind/dump.c index 3f13aea132..5d3ca97a8e 100644 --- a/callgrind/dump.c +++ b/callgrind/dump.c @@ -1659,6 +1659,7 @@ void CLG_(init_files)(Char** dir, Char** file) lastSlash = i; i++; } + i = lastSlash; base_directory = (Char*) CLG_MALLOC(i+1); VG_(strncpy)(base_directory, CLG_(clo).filename_base, i); base_directory[i] = 0;