# HG changeset patch # User rotor # Date 1111068827 0 # Node ID 1e1b5cad203f1cddc5739f22d249321412740885 # Parent 391a502c6b29b1472f6343f2ef0d7ef6165dc0ae * removed ':' from temporary filenames for windows compatibility diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ MINC 2: +2005-03-17 Andrew Janke + * removed ':' from temporary filenames for windows compatibility + 2005-03-11 Bert Vincent * Improve nii2mnc's support for functional (time-varying) data, and support qform as well as sform transforms in the header. diff --git a/volume_io/Prog_utils/files.c b/volume_io/Prog_utils/files.c --- a/volume_io/Prog_utils/files.c +++ b/volume_io/Prog_utils/files.c @@ -22,8 +22,9 @@ #endif /* HAVE_UNISTD_H */ #include + #ifndef lint -static char rcsid[] = "$Header: /private-cvsroot/minc/volume_io/Prog_utils/files.c,v 1.40 2004-10-04 20:23:52 bert Exp $"; +static char rcsid[] = "$Header: /private-cvsroot/minc/volume_io/Prog_utils/files.c,v 1.41 2005-03-17 14:13:47 rotor Exp $"; #endif static BOOLEAN has_no_extension( STRING ); @@ -259,6 +260,7 @@ { int i, len, count; STRING expanded, backup_filename, date; + expanded = expand_filename( filename ); date = get_date(); @@ -296,6 +298,12 @@ if( backup_filename[i] == ' ' || backup_filename[i] == '\t' || backup_filename[i] == '\n' ) backup_filename[i] = '_'; + + /* remove ':' for windows */ + if( backup_filename[i] == ':'){ + backup_filename[i] = '-'; + } + } ++count;