Commit bf36cd41 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix [17660]

parent b2e31be9
......@@ -581,8 +581,8 @@ static char *GetTmpFilePath( access_t *p_access )
free (pwdir_free);
/* remove trailing antislash if any */
if (mbdir[strlen (psz_dir) - 1] == '\\')
mbdir[strlen (psz_dir) - 1] = '\0';
if (psz_dir[strlen (psz_dir) - 1] == '\\')
psz_dir[strlen (psz_dir) - 1] = '\0';
#else
psz_dir = strdup( "/tmp" );
#endif
......
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