aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/file_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-06-20 07:28:02 +0000
committerGuy Harris <guy@alum.mit.edu>2004-06-20 07:28:02 +0000
commit1d2413f4a381017248ecdcc6bed7d13c5f1b398d (patch)
tree52d763b5f71c51789f0b035788ab98e9bc123580 /gtk/file_dlg.c
parent894c4e445cce2cbf35785b27d6bf7f43b069aa57 (diff)
Include <string.h> to declare "strlen()".
Make "cf_name" a "const gchar *", as, at least in GTK+ 2.x, a "const gchar *" is assigned to it. (If it's just a "gchar *" being assigned to it, declaring it a "const gchar *" does no harm.) svn path=/trunk/; revision=11190
Diffstat (limited to 'gtk/file_dlg.c')
-rw-r--r--gtk/file_dlg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/file_dlg.c b/gtk/file_dlg.c
index 6ad46db79c..549a76184e 100644
--- a/gtk/file_dlg.c
+++ b/gtk/file_dlg.c
@@ -1,7 +1,7 @@
/* file_dlg.c
* Dialog boxes for handling files
*
- * $Id: file_dlg.c,v 1.115 2004/06/20 03:05:57 guy Exp $
+ * $Id: file_dlg.c,v 1.116 2004/06/20 07:28:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -26,6 +26,8 @@
#include "config.h"
#endif
+#include <string.h>
+
#include <gtk/gtk.h>
#include "range.h"
@@ -264,7 +266,7 @@ static void
file_open_entry_changed(GtkWidget *w _U_, gpointer file_sel)
{
GtkWidget *prev = OBJECT_GET_DATA(file_sel, PREVIEW_TABLE_KEY);
- gchar* cf_name;
+ const gchar* cf_name;
gboolean have_preview;
/* get the filename */