We already added the separator *if* we needed it; don't add it again.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 21 Jan 2012 23:50:06 +0000 (23:50 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 21 Jan 2012 23:50:06 +0000 (23:50 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40643 f5534014-38df-0310-8fa8-9805f1628bb7

ui/win32/file_dlg_win32.c

index c308bebf279e03fdf8ad7fc699f0c98e8443eb6d..06d4bd79800ba671797b1cb6c3717276c2c4fab1 100644 (file)
@@ -1484,7 +1484,7 @@ build_file_type_list(gboolean save, int *item_to_select) {
              extension = g_slist_next(extension)) {
             if (sep != '\0')
                 g_string_append_c(pattern_str, sep);
-            g_string_append_printf(pattern_str, "%c*.%s", sep, (char *)extension->data);
+            g_string_append_printf(pattern_str, "*.%s", (char *)extension->data);
             sep = ';';
         }