nixpkgs/pkgs/tools/text/unix2dos/unix2dos-mkstemp.patch

21 lines
543 B
Diff
Raw Normal View History

--- unix2dos-2.2/unix2dos.c.orig Fri Nov 17 13:29:24 2000
+++ unix2dos-2.2/unix2dos.c Fri Nov 17 13:30:16 2000
@@ -214,7 +214,7 @@
strcpy (TempPath, "./u2dtmp");
strcat (TempPath, "XXXXXX");
- mktemp (TempPath);
+ mkstemp (TempPath);
#ifdef DEBUG
fprintf(stderr, "unix2dos: using %s as temp file\n", TempPath);
@@ -293,7 +293,7 @@
strcpy (TempPath, "./u2dtmp");
strcat (TempPath, "XXXXXX");
- mktemp (TempPath);
+ mkstemp (TempPath);
#ifdef DEBUG
fprintf(stderr, "unix2dos: using %s as temp file\n", TempPath);