[nautilus] file-operations: make sure to handle correctly hidden files extensions



commit 40947ed576b14777eb3106a3b0350b471455905d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 21 17:07:07 2011 -0400

    file-operations: make sure to handle correctly hidden files extensions
    
    This is a fixup of c250b5702329e71c61f6e7f4e26227925c5b1e90

 libnautilus-private/nautilus-file-operations.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index 7372888..41e25d0 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -541,7 +541,7 @@ parse_previous_duplicate_name (const char *name,
 
 	g_assert (name[0] != '\0');
 
-	*suffix = eel_filename_get_extension_offset (name);
+	*suffix = eel_filename_get_extension_offset (name + 1);
 
 	if (*suffix == NULL || (*suffix)[1] == '\0') {
 		/* no suffix */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]