rpms/vinagre/F-12 vinagre-history-crash.patch, NONE, 1.1 vinagre.spec, 1.62, 1.63
Matthias Clasen
mclasen at fedoraproject.org
Tue Jan 5 01:45:50 UTC 2010
- Previous message (by thread): rpms/perl-local-lib/devel .cvsignore, 1.8, 1.9 perl-local-lib.spec, 1.9, 1.10 sources, 1.8, 1.9
- Next message (by thread): rpms/vinagre/devel vinagre-history-crash.patch, NONE, 1.1 vinagre.spec, 1.66, 1.67
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mclasen
Update of /cvs/pkgs/rpms/vinagre/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12152
Modified Files:
vinagre.spec
Added Files:
vinagre-history-crash.patch
Log Message:
Don't crash on empty history
vinagre-history-crash.patch:
vinagre-connect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE vinagre-history-crash.patch ---
diff -up vinagre-2.28.1/vinagre/vinagre-connect.c.history-crash vinagre-2.28.1/vinagre/vinagre-connect.c
--- vinagre-2.28.1/vinagre/vinagre-connect.c.history-crash 2010-01-04 20:37:20.282194058 -0500
+++ vinagre-2.28.1/vinagre/vinagre-connect.c 2010-01-04 20:37:29.269077172 -0500
@@ -203,7 +203,7 @@ saved_history (void)
{
history_from_file = g_strsplit (file_contents, "\n", 0);
len = g_strv_length (history_from_file);
- if (strlen (history_from_file[len-1]) == 0)
+ if (len > 0 && strlen (history_from_file[len-1]) == 0)
{
g_free (history_from_file[len-1]);
history_from_file[len-1] = NULL;
Index: vinagre.spec
===================================================================
RCS file: /cvs/pkgs/rpms/vinagre/F-12/vinagre.spec,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -p -r1.62 -r1.63
--- vinagre.spec 19 Oct 2009 22:35:34 -0000 1.62
+++ vinagre.spec 5 Jan 2010 01:45:50 -0000 1.63
@@ -1,6 +1,6 @@
Name: vinagre
Version: 2.28.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: VNC client for GNOME
Group: Applications/System
@@ -26,6 +26,9 @@ BuildRequires: telepathy-glib-devel
# for /usr/share/dbus-1/services
Requires: dbus
+# https://bugzilla.gnome.org/show_bug.cgi?id=606072
+Patch0: vinagre-history-crash.patch
+
%description
Vinagre is a VNC client for the GNOME desktop.
@@ -49,6 +52,7 @@ to vinagre.
%prep
%setup -q
+%patch0 -p1 -b .history-crash
%build
%configure --enable-avahi=yes --disable-static
@@ -155,6 +159,9 @@ fi
%changelog
+* Mon Jan 4 2010 Matthias Clasen <mclasen at redhat.com> 2.28.1-2
+- Don't crash when the history file is empty (#552076)
+
* Mon Oct 19 2009 Matthias Clasen <mclasen at redhat.com> 2.28.1-1
- Update to 2.28.1
- Previous message (by thread): rpms/perl-local-lib/devel .cvsignore, 1.8, 1.9 perl-local-lib.spec, 1.9, 1.10 sources, 1.8, 1.9
- Next message (by thread): rpms/vinagre/devel vinagre-history-crash.patch, NONE, 1.1 vinagre.spec, 1.66, 1.67
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list