diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-12-08 04:41:33 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-12-08 04:41:33 +0000 |
commit | ad94d59a5805530359190673a0606ed8fb4f369d (patch) | |
tree | 9968963830d9b12f60a49eb50ba25e702f1e313d /Build/source | |
parent | 33d96dde3b064d91120f298f035cbfde8213b77a (diff) |
Correct return value of getdestdir(). (Windows only).
git-svn-id: svn://tug.org/texlive/trunk@32360 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/kpathsea/win32/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/win32/getdestdir.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/win32/ChangeLog b/Build/source/texk/kpathsea/win32/ChangeLog index 235de44da59..b45c36e3e23 100644 --- a/Build/source/texk/kpathsea/win32/ChangeLog +++ b/Build/source/texk/kpathsea/win32/ChangeLog @@ -1,3 +1,7 @@ +2012-12-08 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * getdestdir.c: Correct return value of getdestdir(). + 2012-10-04 Peter Breitenlohner <peb@mppmu.mpg.de> * dirutil.c: Use stat in int is_dir (). diff --git a/Build/source/texk/kpathsea/win32/getdestdir.c b/Build/source/texk/kpathsea/win32/getdestdir.c index 0d77f320d2a..2dcafbd242f 100644 --- a/Build/source/texk/kpathsea/win32/getdestdir.c +++ b/Build/source/texk/kpathsea/win32/getdestdir.c @@ -83,7 +83,7 @@ getdestdir (int ac, char **av) *q = '\0'; /* now path name of ${name}.mf is in buff. */ /* #ifdef TEST - return buff; + return xstrdup(buff); #endif */ if (ac == 4) @@ -233,7 +233,7 @@ getdestdir (int ac, char **av) for (k = 0; k < NUMBUF; k++) free (pb[k]); - p = buff; + p = xstrdup(buff); return p; } |