Pass the right argument to the "simple_dialog()" call to put up the "we
authorGuy Harris <guy@alum.mit.edu>
Sun, 28 Nov 1999 09:44:53 +0000 (09:44 -0000)
committerGuy Harris <guy@alum.mit.edu>
Sun, 28 Nov 1999 09:44:53 +0000 (09:44 -0000)
couldn't open the temporary capture file" dialog box.

svn path=/trunk/; revision=1132

capture.c

index 5a1c0ce3d6daadf03b0df6b5d1e0a4ae5ab548ff..d17b8a855a8169b5a7a907e6e9c7c1396c399471 100644 (file)
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
 /* capture.c
  * Routines for packet capture windows
  *
- * $Id: capture.c,v 1.81 1999/11/25 22:37:53 guy Exp $
+ * $Id: capture.c,v 1.82 1999/11/28 09:44:53 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -135,7 +135,7 @@ do_capture(char *capfile_name)
   if (cf.save_file_fd == -1) {
     simple_dialog(ESD_TYPE_WARN, NULL,
        "The file to which the capture would be saved (\"%s\")"
-       "could not be opened: %s.", tmpname, strerror(errno));
+       "could not be opened: %s.", capfile_name, strerror(errno));
     return;
   }
   close_cap_file(&cf, info_bar, file_ctx);