Changeset 35e982dd4bbae7e3b882e87ee0c61188eb7c5f04

Show
Ignore:
Timestamp:
04/07/06 23:45:01 (2 years ago)
Author:
Christophe Mutricy <xtophe@videolan.org>
git-committer:
Christophe Mutricy <xtophe@videolan.org> 1144446301 +0000
git-parent:

[f84a3bf3cd31e9ed9b5b004c7a24d3e6cd13ce82]

git-author:
Christophe Mutricy <xtophe@videolan.org> 1144446301 +0000
Message:

eliminate non-valid characters only on the name not on the full path (closes #628)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access_filter/record.c

    r0af0de2 r35e982d  
    397397            psz_name = strdup( "Unknown" ); 
    398398 
    399         asprintf( &p_sys->psz_file, "%s/%s %d-%d-%d %.2dh%.2dm%.2ds.%s", 
    400                   p_sys->psz_path, psz_name, 
     399        asprintf( &p_sys->psz_file, "%s %d-%d-%d %.2dh%.2dm%.2ds.%s", 
     400                  psz_name, 
    401401                  l.tm_mday, l.tm_mon+1, l.tm_year+1900, 
    402402                  l.tm_hour, l.tm_min, l.tm_sec, 
     
    422422        } 
    423423 
     424        psz_name=strdup(p_sys->psz_file); 
     425 
     426#if defined (WIN32) || defined (UNDER_CE) 
     427#define DIR_SEP "\\" 
     428#else 
     429#define DIR_SEP "/" 
     430#endif 
     431        asprintf(&p_sys->psz_file, "%s" DIR_SEP "%s", 
     432                 p_sys->psz_path, psz_name); 
     433        free(psz_name); 
     434 
    424435        msg_Dbg( p_access, "dump in file '%s'", p_sys->psz_file ); 
    425436