mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-03 01:17:27 -08:00
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
From 30ca2903a8ed4eed974ea744e4b9bd96198c425d Mon Sep 17 00:00:00 2001
|
|
From: Rodney Lorrimar <r.lorrimar@fugro-fsi.com.au>
|
|
Date: Mon, 21 Dec 2009 02:07:46 +0000
|
|
Subject: Include NUL terminator in unique_message_data_get_filename()
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=605104
|
|
|
|
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
---
|
|
diff --git a/unique/uniqueinternals.h b/unique/uniqueinternals.h
|
|
index ace40ed..3cec152 100644
|
|
--- a/unique/uniqueinternals.h
|
|
+++ b/unique/uniqueinternals.h
|
|
@@ -13,7 +13,7 @@ G_BEGIN_DECLS
|
|
struct _UniqueMessageData
|
|
{
|
|
guchar *data;
|
|
- gint length;
|
|
+ gint length; /* length of data not including NUL terminator */
|
|
|
|
GdkScreen *screen;
|
|
gchar *startup_id;
|
|
diff --git a/unique/uniquemessage.c b/unique/uniquemessage.c
|
|
index 10f6df5..c74392d 100644
|
|
--- a/unique/uniquemessage.c
|
|
+++ b/unique/uniquemessage.c
|
|
@@ -493,7 +493,7 @@ unique_message_data_get_filename (UniqueMessageData *message_data)
|
|
{
|
|
g_return_val_if_fail (message_data != NULL, NULL);
|
|
|
|
- return g_memdup (message_data->data, message_data->length);
|
|
+ return g_memdup (message_data->data, message_data->length + 1);
|
|
}
|
|
|
|
/**
|
|
--
|
|
cgit v0.9
|