Package: qemu
Version: 0.9.0-2
Followup-For: Bug #425634

This patch may fix the bug. I didn't test it with qemu but only with
qemu-img.

Upstream CVS does not use the temporary variable 'ns' any longer, so
the bug is probably fixed there already.


diff -u a/block.c b/block.c
--- a/block.c
+++ b/block.c
@@ -550,7 +550,7 @@ int bdrv_write(BlockDriverState *bs, int64_t sector_num,
     }
     if (drv->bdrv_pwrite) {
         int ret, len;
-        unsigned ns;
+        int64_t ns;
 
         ns = sector_num * 512;
         len = nb_sectors * 512;


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-vserver-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages qemu depends on:
ii  bochsbios               2.3+20070705-2   BIOS for the Bochs emulator
ii  libasound2              1.0.14a-2        ALSA library
ii  libc6                   2.6.1-1+b1       GNU C Library: Shared libraries
ii  libncurses5             5.6+20070825-1   Shared libraries for terminal hand
ii  libsdl1.2debian         1.2.11-9         Simple DirectMedia Layer
ii  openhackware            0.4.1-2          OpenFirmware emulator for PowerPC
ii  proll                   18-2             JavaStation PROM 2.x compatible re
ii  vgabios                 0.6a-2           VGA BIOS software for the Bochs an
ii  zlib1g                  1:1.2.3.3.dfsg-5 compression library - runtime

Versions of packages qemu recommends:
ii  debootstrap              1.0.3           Bootstrap a basic Debian system
ii  sharutils                1:4.6.3-1       shar, unshar, uuencode, uudecode
ii  vde2                     2.1.6+r154-1+b1 Virtual Distributed Ethernet

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to