SOURCES: dos2unix-segfault.patch - up

arekm arekm at pld-linux.org
Fri May 30 10:20:02 CEST 2008


Author: arekm                        Date: Fri May 30 08:20:02 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- up

---- Files affected:
SOURCES:
   dos2unix-segfault.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/dos2unix-segfault.patch
diff -u SOURCES/dos2unix-segfault.patch:1.1 SOURCES/dos2unix-segfault.patch:1.2
--- SOURCES/dos2unix-segfault.patch:1.1	Mon Aug 12 23:19:20 2002
+++ SOURCES/dos2unix-segfault.patch	Fri May 30 10:19:57 2008
@@ -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");
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/dos2unix-segfault.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list