Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-02-13 01:48:13 +0300
committerChristopher Faylor <me@cgf.cx>2003-02-13 01:48:13 +0300
commit7ca68b7ec3704433cb2b375799a9d482fa0c6be9 (patch)
tree477b5277dd7ec195162c2b28557f092c7ae52b4b /winsup/utils/cygpath.cc
parent31ad033df20c27566466380f3376a0e8a3094ad4 (diff)
* cygpath.cc (doit): Allocate more space for non-path filename.
Diffstat (limited to 'winsup/utils/cygpath.cc')
-rw-r--r--winsup/utils/cygpath.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc
index 02c7b21b4..c78404a95 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);
}
}