diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-02-16 00:44:12 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-02-16 00:44:12 +0000 |
commit | 8af7080001f39d7bf01b41c759587c0d1e09b07e (patch) | |
tree | f1842a9e703492106ae0f996e7840e8a46dcb575 /wiretap/pppdump.c | |
parent | f3bbbce5e3d97b144178a8013782229b9fafaf2a (diff) |
Fix errors found by the Visual C++ analyzer.
svn path=/trunk/; revision=35954
Diffstat (limited to 'wiretap/pppdump.c')
-rw-r--r-- | wiretap/pppdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/pppdump.c b/wiretap/pppdump.c index a0d51ebc1e..a0e8d303e2 100644 --- a/wiretap/pppdump.c +++ b/wiretap/pppdump.c @@ -514,7 +514,7 @@ process_data(pppdump_t *state, FILE_T fh, pkt_t *pkt, int n, guint8 *pd, } pkt->buf[pkt->cnt++] = c; - if (pkt->cnt > PPPD_BUF_SIZE) { + if (pkt->cnt >= PPPD_BUF_SIZE) { *err = WTAP_ERR_UNC_OVERFLOW; return -1; } |