aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-02-11 07:11:45 +0000
committerGuy Harris <guy@alum.mit.edu>1999-02-11 07:11:45 +0000
commit0e8998a11dfde3ab32c0dc669aed23a608a4cb48 (patch)
tree08044356f4ffb84dddadca18d751e7fa912706d9 /capture.c
parent22990ed08fa4cab9f8c2b771bee62013e8b591c6 (diff)
Have MIN_PACKET_SIZE, rather than 1, be the minimum value in the spin
box for the capture size. svn path=/trunk/; revision=186
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/capture.c b/capture.c
index 9adfc92274..8bbfebda46 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.19 1999/02/11 06:17:29 guy Exp $
+ * $Id: capture.c,v 1.20 1999/02/11 07:11:45 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -257,8 +257,8 @@ capture_prep_cb(GtkWidget *w, gpointer d) {
gtk_box_pack_start(GTK_BOX(caplen_hb), snap_lb, FALSE, FALSE, 6);
gtk_widget_show(snap_lb);
- adj = (GtkAdjustment *) gtk_adjustment_new((float) cf.snap, 1.0,
- MAX_PACKET_SIZE, 1.0, 10.0, 0.0);
+ adj = (GtkAdjustment *) gtk_adjustment_new((float) cf.snap,
+ MIN_PACKET_SIZE, MAX_PACKET_SIZE, 1.0, 10.0, 0.0);
snap_sb = gtk_spin_button_new (adj, 0, 0);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (snap_sb), TRUE);
gtk_widget_set_usize (snap_sb, 80, 0);