kov changed libgksu/trunk/ChangeLog, libgksu/trunk/libgksu/libgksu.c

Gustavo Noronha kov at alioth.debian.org
Wed Nov 1 03:47:53 CET 2006


Mensagem de log: 
remove a trailing \n if it exists in the password we get from
the GNOME Keyring (Addresses Debian Bug #395462)


-----


Modified: libgksu/trunk/ChangeLog
===================================================================
--- libgksu/trunk/ChangeLog	2006-10-24 02:28:26 UTC (rev 753)
+++ libgksu/trunk/ChangeLog	2006-11-01 02:47:52 UTC (rev 754)
@@ -1,3 +1,9 @@
+2006-10-31  Gustavo Noronha Silva  <kov at debian.org>
+
+	* libgksu/libgksu.c:
+	- remove a trailing \n if it exists in the password we get from
+	  the GNOME Keyring (Addresses Debian Bug #395462)
+
 2006-10-23  Gustavo Noronha Silva  <kov at debian.org>
 
 	* Release 2.0.3

Modified: libgksu/trunk/libgksu/libgksu.c
===================================================================
--- libgksu/trunk/libgksu/libgksu.c	2006-10-24 02:28:26 UTC (rev 753)
+++ libgksu/trunk/libgksu/libgksu.c	2006-11-01 02:47:52 UTC (rev 754)
@@ -658,6 +658,10 @@
       password = g_locale_from_utf8 (found->secret,
 				     password_length,
 				     NULL, NULL, NULL);
+      password_length = strlen (password);
+
+      if (password[password_length-1] == '\n')
+	password[password_length-1] = '\0';
       return password;
     }
 




More information about the gksu-commits mailing list