aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/vms.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-03-07 21:08:33 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-03-07 21:08:33 +0000
commite955a3dd363867fc96f4977ea97f2862fd3f557e (patch)
treee701c422a507f86b4f04e1639a64fdb7c85004e7 /wiretap/vms.c
parent846ee871dfd54cd811aff57ce86d350cc6cca4b2 (diff)
Bug fix from Marc Milgram: occasionally the VMS parser would read off
the end of string, and find some old data that looked useful, but was bogus for the frame. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4897 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/vms.c')
-rw-r--r--wiretap/vms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/vms.c b/wiretap/vms.c
index 7fe8ad9cf6..c15760932f 100644
--- a/wiretap/vms.c
+++ b/wiretap/vms.c
@@ -1,6 +1,6 @@
/* vms.c
*
- * $Id: vms.c,v 1.10 2002/03/05 08:39:29 guy Exp $
+ * $Id: vms.c,v 1.11 2002/03/07 21:08:33 guy Exp $
*
* Wiretap Library
* Copyright (c) 2001 by Marc Milgram <mmilgram@arrayinc.com>
@@ -269,7 +269,7 @@ isdumpline( guchar *line )
{
int i = 0;
- while (i<VMS_LINE_LENGTH && !isalnum(line[i]))
+ while (i<VMS_LINE_LENGTH && line[i] && !isalnum(line[i]))
i++;
if (! isxdigit(line[i]))