fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1From 30ca2903a8ed4eed974ea744e4b9bd96198c425d Mon Sep 17 00:00:00 2001
2From: Rodney Lorrimar <r.lorrimar@fugro-fsi.com.au>
3Date: Mon, 21 Dec 2009 02:07:46 +0000
4Subject: Include NUL terminator in unique_message_data_get_filename()
5
6https://bugzilla.gnome.org/show_bug.cgi?id=605104
7
8Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
9---
10diff --git a/unique/uniqueinternals.h b/unique/uniqueinternals.h
11index ace40ed..3cec152 100644
12--- a/unique/uniqueinternals.h
13+++ b/unique/uniqueinternals.h
14@@ -13,7 +13,7 @@ G_BEGIN_DECLS
15 struct _UniqueMessageData
16 {
17 guchar *data;
18- gint length;
19+ gint length; /* length of data not including NUL terminator */
20
21 GdkScreen *screen;
22 gchar *startup_id;
23diff --git a/unique/uniquemessage.c b/unique/uniquemessage.c
24index 10f6df5..c74392d 100644
25--- a/unique/uniquemessage.c
26+++ b/unique/uniquemessage.c
27@@ -493,7 +493,7 @@ unique_message_data_get_filename (UniqueMessageData *message_data)
28 {
29 g_return_val_if_fail (message_data != NULL, NULL);
30
31- return g_memdup (message_data->data, message_data->length);
32+ return g_memdup (message_data->data, message_data->length + 1);
33 }
34
35 /**
36--
37cgit v0.9