gimp r26835 - in trunk: . app/widgets
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26835 - in trunk: . app/widgets
- Date: Tue, 2 Sep 2008 12:00:07 +0000 (UTC)
Author: mitch
Date: Tue Sep 2 12:00:07 2008
New Revision: 26835
URL: http://svn.gnome.org/viewvc/gimp?rev=26835&view=rev
Log:
2008-09-02 Michael Natterer <mitch gimp org>
* app/widgets/gimpselectiondata.c: no need to set strlen(sting)+1
bytes on the GtkSelectionData because gtk_selection_data_set()
zero-terminates all data anyway.
Modified:
trunk/ChangeLog
trunk/app/widgets/gimpselectiondata.c
Modified: trunk/app/widgets/gimpselectiondata.c
==============================================================================
--- trunk/app/widgets/gimpselectiondata.c (original)
+++ trunk/app/widgets/gimpselectiondata.c Tue Sep 2 12:00:07 2008
@@ -93,7 +93,7 @@
}
gtk_selection_data_set (selection, selection->target,
- 8, (guchar *) vals, strlen (vals) + 1);
+ 8, (guchar *) vals, strlen (vals));
g_free (vals);
}
@@ -361,7 +361,7 @@
str = g_strdup_printf ("%d:%d", get_pid (), gimp_image_get_ID (image));
gtk_selection_data_set (selection, selection->target,
- 8, (guchar *) str, strlen (str) + 1);
+ 8, (guchar *) str, strlen (str));
g_free (str);
}
@@ -406,7 +406,7 @@
(gint) channel);
gtk_selection_data_set (selection, selection->target,
- 8, (guchar *) str, strlen (str) + 1);
+ 8, (guchar *) str, strlen (str));
g_free (str);
}
@@ -459,7 +459,7 @@
str = g_strdup_printf ("%d:%d", get_pid (), gimp_item_get_ID (item));
gtk_selection_data_set (selection, selection->target,
- 8, (guchar *) str, strlen (str) + 1);
+ 8, (guchar *) str, strlen (str));
g_free (str);
}
@@ -506,8 +506,10 @@
gchar *str;
str = g_strdup_printf ("%d:%p:%s", get_pid (), object, name);
+
gtk_selection_data_set (selection, selection->target,
- 8, (guchar *) str, strlen (str) + 1);
+ 8, (guchar *) str, strlen (str));
+
g_free (str);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]