Package: xtranslate
Version: 0.2-10
Followup-For: Bug #201423

There is an obvious error in the source code which could be the cause of
this segfault.
Here is a patch to fix this error:

--- xtranslate-0.2.orig/xtranslate.c
+++ xtranslate-0.2/xtranslate.c
@@ -35,7 +35,7 @@
         XDefaultRootWindow(display), CurrentTime);
     string = XFetchBytes(display, &bytes);

-    wort = malloc((char) "TRANSLATEWORD=");
+    wort = malloc(sizeof("TRANSLATE_WORD="));
     strcpy(wort,"TRANSLATE_WORD=");

     for ( i=1; i < argc;i++) {


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-13-386
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages xtranslate depends on:
ii  libc6                     2.3.5-12       GNU C Library: Shared libraries an
ii  libx11-6                  6.9.0.dfsg.1-4 X Window System protocol client li
ii  libxext6                  6.9.0.dfsg.1-4 X Window System miscellaneous exte
ii  translate                 0.6-7          translates words from English into
ii  xbase-clients             6.9.0.dfsg.1-4 miscellaneous X clients

xtranslate recommends no packages.

-- no debconf information


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

Reply via email to