Filewatcher File Search
FTP Search
  
Directory (beta)
  
Content Search (beta)
   
pkg://kdepim-2.2.2-4.src.rpm:2445153/post-2.2.2-kdepim.diff  info  downloads

--- kdepim-2.2.2/korganizer/komailclient.cpp.sec	Sun May  6 14:57:36 2001
+++ kdepim-2.2.2/korganizer/komailclient.cpp	Sat Dec 21 06:32:09 2002
@@ -14,6 +14,7 @@
 #include <kurl.h>
 #include <kapp.h>
 #include <dcopclient.h>
+#include <kprocess.h>
 
 #include "version.h"
 #include "event.h"
@@ -67,17 +68,16 @@
       command = KStandardDirs::findExe(QString::fromLatin1("mail"));
       if (command.isNull()) return false; // give up
     
-      command.append(QString::fromLatin1(" -s \x22"));
-      command.append(subject);
-      command.append(QString::fromLatin1("\x22"));
+      command.append(QString::fromLatin1(" -s "));
+      command.append(KShellProcess::quote(subject));
 
       if (bcc) {
         command.append(QString::fromLatin1(" -b "));
-        command.append(from);
+        command.append(KShellProcess::quote(from));
       }
 
       command.append(" ");
-      command.append(to);
+      command.append(KShellProcess::quote(to));
 
       needHeaders = false;
     }
--- kdepim-2.2.2/kpilot/conduits/popmail/parsedate.c.sec	Thu Jul 27 19:07:16 2000
+++ kdepim-2.2.2/kpilot/conduits/popmail/parsedate.c	Sat Dec 21 06:32:09 2002
@@ -1676,7 +1676,7 @@
     for ( ; ; ) {
 	(void)printf("\t> ");
 	(void)fflush(stdout);
-	if (gets(buff) == NULL || buff[0] == '\n')
+	if (fgets(stdin,buff,sizeof(buff)-1) == NULL || buff[0] == '\n')
 	    break;
 #if YYDEBUG
 	if (strcmp(buff, "yydebug") == 0) {
--- kdepim-2.2.2/libical/src/libical/icalmime.c.sec	Wed Apr 11 11:37:32 2001
+++ kdepim-2.2.2/libical/src/libical/icalmime.c	Sat Dec 21 06:39:18 2002
@@ -205,8 +205,8 @@
 	}
 
 	if(parts[i].header.error!=SSPM_NO_ERROR){
-	    char *str;
-	    char* temp[256];
+	    const char *str = "Unknown error";
+	    char temp[256];
 
 	    if(parts[i].header.error==SSPM_UNEXPECTED_BOUNDARY_ERROR){
 		str = "Got an unexpected boundary, possibly due to a MIME header for a MULTIPART part that is missing the Content-Type line";
@@ -227,16 +227,16 @@
 	    }
 
 	    if(parts[i].header.error_text != 0){
-		snprintf((char*)temp,256,
+		snprintf(temp,sizeof(temp),
 			 "%s: %s",str,parts[i].header.error_text);
 	    } else {
-		strcpy((char*)temp,str);
+		strcpy(temp,str);
 	    }
 
 	    icalcomponent_add_property
 		(comp,
 		 icalproperty_vanew_xlicerror(
-		     (char*)temp,
+		     temp,
 		     icalparameter_new_xlicerrortype(
 			 ICAL_XLICERRORTYPE_MIMEPARSEERROR),
 		     0));  
--- kdepim-2.2.2/libical/src/libical/icalparameter.c.sec	Wed Apr 11 11:37:32 2001
+++ kdepim-2.2.2/libical/src/libical/icalparameter.c	Sat Dec 21 06:32:09 2002
@@ -257,7 +257,7 @@
     /* Now, copy the buffer to a tmp_buffer, which is safe to give to
        the caller without worring about de-allocating it. */
     
-    out_buf = icalmemory_tmp_buffer(strlen(buf));
+    out_buf = icalmemory_tmp_buffer(strlen(buf)+1);
     strcpy(out_buf, buf);
 
     icalmemory_free_buffer(buf);
--- kdepim-2.2.2/libical/src/libical/sspm.c.sec	Wed Apr 11 11:37:32 2001
+++ kdepim-2.2.2/libical/src/libical/sspm.c	Sat Dec 21 06:32:09 2002
@@ -948,7 +948,8 @@
 		
 		assert(strlen(buf) < BUF_SIZE);
 		
-		strcpy(header_lines[current_line],buf);
+		strncpy(header_lines[current_line],buf,BUF_SIZE);
+		header_lines[current_line][BUF_SIZE-1] = '\0';
 		
 		break;
 	    }
@@ -983,7 +984,7 @@
 		
 		assert( strlen(buf_start) + strlen(last_line) < BUF_SIZE);
 		
-		strcat(last_line,buf_start);
+		strncat(last_line,buf_start, BUF_SIZE-strlen(last_line)-1);
 		
 		break;
 	    }
--- kdepim-2.2.2/libical/src/libicalss/icalfileset.c.sec	Wed Apr 11 11:37:32 2001
+++ kdepim-2.2.2/libical/src/libicalss/icalfileset.c	Sat Dec 21 06:32:09 2002
@@ -282,12 +282,6 @@
 
 }
 
-#ifdef ICAL_SAFESAVES
-int icalfileset_safe_saves=1;
-#else
-int icalfileset_safe_saves=0;
-#endif
-
 icalerrorenum icalfileset_commit(icalfileset* cluster)
 {
     char tmp[ICAL_PATH_MAX]; 
@@ -306,15 +300,6 @@
 	return ICAL_NO_ERROR;
     }
     
-    if(icalfileset_safe_saves == 1){
-	snprintf(tmp,ICAL_PATH_MAX,"cp %s %s.bak",impl->path,impl->path);
-	
-	if(system(tmp) < 0){
-	    icalerror_set_errno(ICAL_FILE_ERROR);
-	    return ICAL_FILE_ERROR;
-	}
-    }
-
     if(lseek(impl->fd,SEEK_SET,0) < 0){
 	icalerror_set_errno(ICAL_FILE_ERROR);
 	return ICAL_FILE_ERROR;
--- kdepim-2.2.2/libical/src/libicalvcal/vobject.c.sec	Mon Jan  1 10:37:08 2001
+++ kdepim-2.2.2/libical/src/libicalvcal/vobject.c	Sat Dec 21 06:32:09 2002
@@ -1247,9 +1247,10 @@
     char buf2[256];
     strcpy(buf1,NAME_OF(o));
     while ((o=isAPropertyOf(o,VCGroupingProp)) != 0) {
-	strcpy(buf2,STRINGZ_VALUE_OF(o));
-	strcat(buf2,".");
-	strcat(buf2,buf1);
+	strncpy(buf2,STRINGZ_VALUE_OF(o), sizeof(buf2));
+	buf2[sizeof(buf2)-1] = '\0';
+	strncat(buf2,".", sizeof(buf2)-strlen(buf2)-1);
+	strncat(buf2,buf1, sizeof(buf2)-strlen(buf2)-1);
 	strcpy(buf1,buf2);
 	}
     appendsOFile(fp,buf1);
--- kdepim-2.2.2/libical/src/test/regression.c.sec	Wed Apr 11 11:37:32 2001
+++ kdepim-2.2.2/libical/src/test/regression.c	Sat Dec 21 06:32:09 2002
@@ -2864,8 +2864,6 @@
     int i;
     int final,sec;
 
-    icalfileset_safe_saves = 1;
-
     icalerror_clear_errno();
 
     unlink(path);
--- kdepim-2.2.2/libkcal/versit/vobject.c.sec	Wed Apr 18 19:28:58 2001
+++ kdepim-2.2.2/libkcal/versit/vobject.c	Sat Dec 21 06:32:09 2002
@@ -1226,9 +1226,10 @@
     char buf2[256];
     strcpy(buf1,NAME_OF(o));
     while ((o=isAPropertyOf(o,VCGroupingProp)) != 0) {
-	strcpy(buf2,STRINGZ_VALUE_OF(o));
-	strcat(buf2,".");
-	strcat(buf2,buf1);
+	strncpy(buf2,STRINGZ_VALUE_OF(o),sizeof(buf2));
+	buf2[sizeof(buf2)] = '\0';
+	strncat(buf2,".",sizeof(buf2)-strlen(buf2)-1);
+	strncat(buf2,buf1,sizeof(buf2)-strlen(buf2)-1);
 	strcpy(buf1,buf2);
 	}
     appendsOFile(fp,buf1);
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2008 IT MARUHN