]> git.pld-linux.org Git - packages/dos2unix.git/blobdiff - dos2unix-segfault.patch
- up
[packages/dos2unix.git] / dos2unix-segfault.patch
index 7c8391bd2bdb20e4b1fdd12362f439a54177deb5..5ead232d51b6f57d0e98e6487fb3aaccc10a2751 100644 (file)
@@ -1,5 +1,5 @@
---- dos2unix-3.1/dos2unix.c.segf       Thu Jan 17 17:27:42 2002
-+++ dos2unix-3.1/dos2unix.c    Thu Jan 17 17:28:07 2002
+--- dos2unix-3.1/dos2unix.c
++++ dos2unix-3.1/dos2unix.c
 @@ -147,9 +147,9 @@
   * RetVal: NULL if failure
   *         file stream otherwise
@@ -24,7 +24,7 @@
  
 -  strcpy (TempPath, "./d2utmp");
 -  strcat (TempPath, "XXXXXX");
--  mkstemp (TempPath);
+-  mktemp (TempPath);
 +  strcpy (TempPath, "./d2utmpXXXXXX");
 +  if((fd=mkstemp (TempPath))<0) {
 +        perror("Failed to open output temp file");
@@ -63,7 +63,7 @@
  
 -  strcpy (TempPath, "./u2dtmp");
 -  strcat (TempPath, "XXXXXX");
--  mkstemp (TempPath);
+-  mktemp (TempPath);
 +  strcpy (TempPath, "./u2dtmpXXXXXX");
 +  if((fd=mkstemp (TempPath))<0) {
 +        perror("Failed to open output temp file");
This page took 0.090728 seconds and 4 git commands to generate.