soup-message-io.c: Fix integer overflow on 32bit
authorJens Georg <mail@jensge.org>
Sat, 25 Jun 2011 10:54:44 +0000 (12:54 +0200)
committerDan Winship <danw@gnome.org>
Wed, 29 Jun 2011 16:17:43 +0000 (12:17 -0400)
Fixes a bug serving large files, eg, in Rygel.

https://bugzilla.gnome.org/show_bug.cgi?id=638468

libsoup/soup-message-io.c

index c7da2c8..f9acc8f 100644 (file)
@@ -64,7 +64,7 @@ typedef struct {
        GString              *write_buf;
        SoupMessageBody      *write_body;
        SoupBuffer           *write_chunk;
-       gsize                 write_body_offset;
+       goffset               write_body_offset;
        goffset               write_length;
        goffset               written;