aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-11-22 22:23:05 -0800
committerThomas White <taw@bitwiz.org.uk>2013-11-22 22:23:05 -0800
commit15119f0e10d93bfad5214e042ca437b86159b30f (patch)
treefccd33f189005c2332ebedc37d878bc2810c0977 /src
parentd055c5c8f2e489bae2d34d567d6e2457910b4c51 (diff)
Use getcwd() instead of get_current_dir()
Diffstat (limited to 'src')
-rw-r--r--src/process_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process_image.c b/src/process_image.c
index 0e8eedbc..b07e16b6 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -146,7 +146,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
free(image.data);
image.data = data_for_measurement;
- rn = get_current_dir_name();
+ rn = getcwd(NULL, 0);
r = chdir(tmpdir);
if ( r ) {