Fix copy and paste error.
authorMichael Tüxen <tuexen@fh-muenster.de>
Wed, 25 Apr 2012 19:17:10 +0000 (19:17 -0000)
committerMichael Tüxen <tuexen@fh-muenster.de>
Wed, 25 Apr 2012 19:17:10 +0000 (19:17 -0000)
Reported by Evan Huus. This should fix
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7194

svn path=/trunk/; revision=42238

mergecap.c

index c17ab9622f334a9e215d8e758c78fa77880af516..5d741f77274181510bcecff08f0b6b8b4eeef00b 100644 (file)
@@ -396,7 +396,7 @@ main(int argc, char *argv[])
     comment_gstr = g_string_new("File created my merging: \n");
 
     for (i = 0; i < in_file_count; i++) {
-        g_string_append_printf(comment_gstr, "File%d: %s \n",i+1,in_files[0].filename);
+        g_string_append_printf(comment_gstr, "File%d: %s \n",i+1,in_files[i].filename);
     }
     shb_hdr->section_length = -1;
     /* options */