Package: wiipdf
Version: 1.0-3
Severity: normal
Tags: patch
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.26-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages wiipdf depends on:
ii libbluetooth2 3.36-1 Library to use the BlueZ Linux Blu
ii libc6 2.7-5 GNU C Library: Shared libraries
ii libcwiid1 0.6.00-4 library to interface with the wiim
wiipdf recommends no packages.
-- debconf-show failed
--- wiipdf-1.0/wiipdf.c 2008-09-18 07:08:26.000000000 +0200
+++ wiipdf-1.0_patched/wiipdf.c 2008-12-08 18:26:52.000000000 +0100
@@ -47,7 +47,7 @@
*/
static void launch_xpdf() {
char *buffer;
- if (asprintf(&buffer, "xpdf -fullscreen -remote wiipdf-%s %s %d", pdf_file, pdf_file, slide_number) == -1) {
+ if (asprintf(&buffer, "xpdf -fullscreen -remote wiipdf-\"%s\" \"%s\" %d", pdf_file, pdf_file, slide_number) == -1) {
fprintf(stderr, "Error allocating memory\n");
exit(1);
}
@@ -56,7 +56,7 @@
static void quit_xpdf() {
char *buffer;
- if (asprintf(&buffer, "xpdf -quit -remote wiipdf-%s", pdf_file) == -1) {
+ if (asprintf(&buffer, "xpdf -quit -remote wiipdf-\"%s\"", pdf_file) == -1) {
fprintf(stderr, "Error allocating memory\n");
exit(1);
}
--- wiipdf-1.0/wiipdf.c 2008-09-18 07:08:26.000000000 +0200
+++ wiipdf-1.0_patched/wiipdf.c 2008-12-08 18:26:52.000000000 +0100
@@ -47,7 +47,7 @@
*/
static void launch_xpdf() {
char *buffer;
- if (asprintf(&buffer, "xpdf -fullscreen -remote wiipdf-%s %s %d", pdf_file, pdf_file, slide_number) == -1) {
+ if (asprintf(&buffer, "xpdf -fullscreen -remote wiipdf-\"%s\" \"%s\" %d", pdf_file, pdf_file, slide_number) == -1) {
fprintf(stderr, "Error allocating memory\n");
exit(1);
}
@@ -56,7 +56,7 @@
static void quit_xpdf() {
char *buffer;
- if (asprintf(&buffer, "xpdf -quit -remote wiipdf-%s", pdf_file) == -1) {
+ if (asprintf(&buffer, "xpdf -quit -remote wiipdf-\"%s\"", pdf_file) == -1) {
fprintf(stderr, "Error allocating memory\n");
exit(1);
}