Commit 73b0067b authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* backport [18690]

Use DIR_SEP instead of "/"
parent 7d6cc627
......@@ -601,7 +601,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
if( p_mypicturesdir == NULL )
{
asprintf( &val.psz_string, "%s/" CONFIG_DIR,
asprintf( &val.psz_string, "%s\\" CONFIG_DIR,
p_vout->p_vlc->psz_homedir );
}
else
......@@ -648,7 +648,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
FILE *p_file;
do
{
asprintf( &psz_filename, "%s/%s%05d.%s", val.psz_string,
asprintf( &psz_filename, "%s" DIR_SEP "%s%05d.%s", val.psz_string,
psz_prefix, i_num++, format.psz_string );
}
while( ( p_file = utf8_fopen( psz_filename, "r" ) ) && !fclose( p_file ) );
......@@ -656,7 +656,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
}
else
{
asprintf( &psz_filename, "%s/%s%u.%s", val.psz_string,
asprintf( &psz_filename, "%s" DIR_SEP "%s%u.%s", val.psz_string,
psz_prefix,
(unsigned int)(p_pic->date / 100000) & 0xFFFFFF,
format.psz_string );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment