More P64 changes.
authorGuy Harris <guy@alum.mit.edu>
Sat, 7 Mar 2009 05:18:59 +0000 (05:18 -0000)
committerGuy Harris <guy@alum.mit.edu>
Sat, 7 Mar 2009 05:18:59 +0000 (05:18 -0000)
svn path=/trunk/; revision=27641

wiretap/i4btrace.c

index 02a9b0db47fe7fac328c69360f10d8a154928adb..1b2bc080954189df02ec62c239006aa31c9e5644 100644 (file)
@@ -120,7 +120,7 @@ static gboolean i4btrace_read(wtap *wth, int *err, gchar **err_info,
 {
        int     ret;
        i4b_trace_hdr_t hdr;
-       guint16 length;
+       guint32 length;
        void *bufp;
 
        /* Read record header. */
@@ -138,7 +138,7 @@ static gboolean i4btrace_read(wtap *wth, int *err, gchar **err_info,
                    hdr.length, (unsigned long)sizeof(hdr));
                return FALSE;
        }
-       length = hdr.length - sizeof(hdr);
+       length = hdr.length - (guint32)sizeof(hdr);
 
        wth->phdr.len = length;
        wth->phdr.caplen = length;