Package: directvnc Version: 0.7.5-8 Severity: important Tags: patch This patch corrects following bug: only raw encoding is used by directvnc, even if no encoding is specified (default order should be "copyrect tight hextile zlib corre rre raw") or if one other than raw is specified with the -e option.
-- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.20.21 Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 Versions of packages directvnc depends on: ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries ii libdirectfb-1.0-0 1.0.1-7 direct frame buffer graphics - sha ii libjpeg62 6b-13 The Independent JPEG Group's JPEG ii zlib1g 1:1.2.3-13 compression library - runtime directvnc recommends no packages.
diff -u directvnc-0.7.5/src/rfb.c directvnc-0.7.5.new/src/rfb.c --- directvnc-0.7.5/src/rfb.c 2003-01-31 09:41:03.000000000 +0100 +++ directvnc-0.7.5.new/src/rfb.c 2008-07-07 13:12:18.000000000 +0200 @@ -248,6 +248,8 @@ if (!write_exact(sock, (char*)&pf, sz_rfbSetPixelFormatMsg)) return 0; em.type = rfbSetEncodings; + em.nEncodings = 0; + /* figure out the encodings string given on the command line */ next = strtok(opt.encodings, " "); while (next && em.nEncodings < MAX_ENCODINGS)