kov changed libgksu/trunk/ChangeLog, libgksu/trunk/libgksu/gksu-context.c

Gustavo Noronha kov at costa.debian.org
Thu Nov 17 23:38:48 UTC 2005


Mensagem de log: 
	- init buffer with {0} so that debuging information will
	  not show crappy stuff for it



-----


Modified: libgksu/trunk/ChangeLog
===================================================================
--- libgksu/trunk/ChangeLog	2005-11-17 23:35:06 UTC (rev 471)
+++ libgksu/trunk/ChangeLog	2005-11-17 23:38:48 UTC (rev 472)
@@ -1,6 +1,10 @@
 2005-11-17  Gustavo Noronha Silva  <kov at debian.org>
 
 	* libgksu/gksu-context.c:
+	- init buffer with {0} so that debuging information will
+	  not show crappy stuff for it
+
+	* libgksu/gksu-context.c:
 	- check if pass_not_needed is there before calling
 	  it on gksu_context_sudo_run_full
 

Modified: libgksu/trunk/libgksu/gksu-context.c
===================================================================
--- libgksu/trunk/libgksu/gksu-context.c	2005-11-17 23:35:06 UTC (rev 471)
+++ libgksu/trunk/libgksu/gksu-context.c	2005-11-17 23:38:48 UTC (rev 472)
@@ -1061,7 +1061,7 @@
 {
   char **cmd;
   int argcount = 4;
-  char buffer[256];
+  char buffer[256] = {0};
 
   pid_t pid;
   size_t r;
@@ -1071,8 +1071,6 @@
 
   gboolean need_pass = TRUE;
   
-  bzero(buffer, 256);
-
   if ((pipe(parent_pipe)) == -1)
     return TRUE;
 
@@ -1214,7 +1212,7 @@
 			    gpointer pnn_user_data, GError **error)
 {
   char **cmd;
-  char buffer[256];
+  char buffer[256] = {0};
   int argcount = 8;
   int i, j;
 




More information about the gksu-commits mailing list