Ethereal-dev: [Ethereal-dev] Message in error popup window missing

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Thomas Boehne <TBoehne@xxxxxxxx>
Date: Fri, 7 Jan 2005 14:01:54 +0100
Patch to capture_loop.c (see svn log for r12851).

When I ran ethereal as a non-root user and tried to start a capture, a
simple error message window opened with the error icon, an OK button
and nothing but the string "The".

Sincerely yours, 
Thomas Böhne

-- 
Jäger Computergesteuerte Messtechnik GmbH
Thomas Böhne
Rheinstraße 2-4
64653 Lorsch
Germany
Phone: +49-6251-9632-0




Index: capture_loop.c
===================================================================
--- capture_loop.c	(revision 12980)
+++ capture_loop.c	(working copy)
@@ -654,7 +654,7 @@
 	    "at the URL lists a number of mirror sites.";
 	else
 	  libpcap_warn = "";
-	g_snprintf(errmsg, sizeof errmsg,
+	g_snprintf(errmsg, errmsg_len,
 	  "The capture session could not be initiated (%s).\n"
 	  "Please check to make sure you have sufficient permissions, and that\n"
 	  "you have the proper interface or pipe specified.%s", open_err_str,