X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=blobdiff_plain;f=wiretap%2Ffile_access.c;fp=wiretap%2Ffile_access.c;h=92b31b572a21e1a9db9b6cc3b67939e669563022;hp=3e876aa7aa3733ba56f65387bfaacaa953a31f06;hb=46fcd568b4efb935bcfc2a9ca5fe7cf0683a3c5b;hpb=4619f26cb774b96565aebee321e96ca4953d0524 diff --git a/wiretap/file_access.c b/wiretap/file_access.c index 3e876aa7aa..92b31b572a 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -794,13 +794,18 @@ void wtap_free_file_extensions_list(GSList *extensions) g_slist_free(extensions); } -/* Return the default file extension to use with the specified file type. */ +/* Return the default file extension to use with the specified file type; + that's just the extension, without any ".". */ const char *wtap_file_extension_default_string(int filetype) { if (filetype < 0 || filetype >= wtap_num_file_types) return NULL; - else - return dump_open_table[filetype].file_extension_default; + else { + /* + * XXX - skip past the ".". + */ + return dump_open_table[filetype].file_extension_default + 1; + } } gboolean wtap_dump_can_open(int filetype)