[file-roller: 10/123] fixed file format filter
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller: 10/123] fixed file format filter
- Date: Mon, 6 Aug 2012 13:41:42 +0000 (UTC)
commit 54cb8383be76461a4bde782ab6c2798c118f49e3
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jul 18 10:16:20 2012 +0200
fixed file format filter
removed a double dot from the filter
src/eggfileformatchooser.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/eggfileformatchooser.c b/src/eggfileformatchooser.c
index ce2c906..6b0f9e2 100644
--- a/src/eggfileformatchooser.c
+++ b/src/eggfileformatchooser.c
@@ -187,11 +187,11 @@ egg_file_format_filter_add_extensions (GtkFileFilter *filter,
while (*extptr)
{
length = strcspn (extptr, ",");
- pattern = g_new (gchar, length + 3);
+ pattern = g_new (gchar, length + 2);
- memcpy (pattern, "*.", 2);
- memcpy (pattern + 2, extptr, length);
- pattern[length + 2] = '\0';
+ memcpy (pattern, "*", 1);
+ memcpy (pattern + 1, extptr, length);
+ pattern[length + 1] = '\0';
if (filter_name)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]