Hello,
# I don't know if Lgb applied this, but the best bet is to send in
# a real patch, because that is the easiest.
something like :
-------------------------------------------------------------------
--- src/support/filetools.C.orig Thu Feb 3 22:17:46 2000
+++ src/support/filetools.C Sun Feb 6 14:28:53 2000
@@ -905,11 +905,11 @@
{
string::size_type last_slash = oldname.rfind('/');
string::size_type last_dot;
- if (last_slash != string::npos)
- last_dot = oldname.find('.', last_slash);
- else
- last_dot = oldname.rfind('.');
+ last_dot = oldname.rfind('.');
+ if (last_dot < last_slash && last_slash != string::npos )
+ last_dot = string::npos;
+
string ext;
// Make sure the extension starts with a dot
if (!extension.empty() && extension[0] != '.')
---------------------------------------------------------------------
? (this was done against 1.1.4)
Cheers,
Etienne