summaryrefslogtreecommitdiff
path: root/stream.c
diff options
context:
space:
mode:
authorJohn Hughes <john@Calva.COM>2002-05-24 10:19:44 +0000
committerJohn Hughes <john@Calva.COM>2002-05-24 10:19:44 +0000
commit2c4e3a8061130493bd196564f096b677c5528fc1 (patch)
tree00288717989dffe3707d92479df598eba2b8d39b /stream.c
parent38ae88d332acd9f86a30d58158e306d795d98977 (diff)
downloadstrace-2c4e3a8061130493bd196564f096b677c5528fc1.tar.gz
strace-2c4e3a8061130493bd196564f096b677c5528fc1.tar.bz2
strace-2c4e3a8061130493bd196564f096b677c5528fc1.tar.xz
fix unsigned arithmetic bug in previous change
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index a8ea11e..42bfcc8 100644
--- a/stream.c
+++ b/stream.c
@@ -505,7 +505,7 @@ int len;
int c = 0;
struct t_opthdr hdr;
- while (len >= sizeof hdr) {
+ while (len >= (int) sizeof hdr) {
if (umove(tcp, addr, &hdr) < 0) break;
if (c++) {
tprintf (", ");