From 7ca68b7ec3704433cb2b375799a9d482fa0c6be9 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 12 Feb 2003 22:48:13 +0000 Subject: * cygpath.cc (doit): Allocate more space for non-path filename. --- winsup/utils/ChangeLog | 4 ++++ winsup/utils/cygpath.cc | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'winsup/utils') diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 11fee82..91b2afa 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +2003-02-12 Christopher Faylor + + * cygpath.cc (doit): Allocate more space for non-path filename. + 2003-02-07 Christopher Faylor * dump_setup.cc (compar): Use case insensitive comparisons. diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc index 02c7b21..c78404a 100644 --- a/winsup/utils/cygpath.cc +++ b/winsup/utils/cygpath.cc @@ -415,7 +415,7 @@ doit (char *filename) { len = strlen (filename); if (len) - len += 100; + len += MAX_PATH + 1001; else if (ignore_flag) exit (0); else @@ -470,10 +470,10 @@ doit (char *filename) } if (!unix_flag) { - if (shortname_flag) - buf = get_short_name (buf); - if (longname_flag) - buf = get_long_name (buf, len); + if (shortname_flag) + buf = get_short_name (buf); + if (longname_flag) + buf = get_long_name (buf, len); } } -- cgit v1.1