[Patch]: dtable.cc
Pierre A. Humblet
pierre@phumblet.no-ip.org
Sun Apr 11 03:45:00 GMT 2004
Here is a minor fix in dtable.cc.
My next fix is to remove the normalized_path from path_conv,
and the attendant malloc and path_conv destructor. The patch is
not big, but it may have unexpected corner effects.
I will wait until after the next release is out.
Pierre
2004-04-11 Pierre Humblet <pierre.humblet@ieee.org>
* dtable.cc (dtable::extend): Change order of memcpy and cfree.
Index: dtable.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/dtable.cc,v
retrieving revision 1.139
diff -u -p -r1.139 dtable.cc
--- dtable.cc 10 Apr 2004 13:45:09 -0000 1.139
+++ dtable.cc 10 Apr 2004 19:25:15 -0000
@@ -91,8 +91,8 @@ dtable::extend (int howmuch)
}
if (fds)
{
- cfree (fds);
memcpy (newfds, fds, size * sizeof (fds[0]));
+ cfree (fds);
}
size = new_size;
More information about the Cygwin-patches
mailing list