Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HowToDoThis committed Aug 11, 2021
1 parent 501f99b commit 2df401c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/Core/PathUtils.cs
Expand Up @@ -35,7 +35,7 @@ public static string DropPathRoot(string path)
/// </summary>
/// <param name="orig">If specified, used as the base file name for the temporary file</param>
/// <returns>Returns a temporary file name</returns>
public static string GetTempFileName(string orig)
public static string GetTempFileName(string orig = null)
{
string fileName;
var tempPath = Path.GetTempPath();
Expand Down
2 changes: 1 addition & 1 deletion src/ICSharpCode.SharpZipLib/Tar/TarArchive.cs
Expand Up @@ -803,7 +803,7 @@ private void WriteEntryCore(TarEntry sourceEntry, bool recurse)
{
if (!IsBinary(entryFilename))
{
tempFileName = Path.GetRandomFileName();
tempFileName = PathUtils.GetTempFileName();

using (StreamReader inStream = File.OpenText(entryFilename))
{
Expand Down

0 comments on commit 2df401c

Please sign in to comment.