On Tue, Apr 04, 2006 at 08:23:47PM +0200, Kim Woelders wrote:
> [EMAIL PROTECTED] wrote:
> >
> >I am running e16-0.16.8.1 on Gentoo Linux. When using e16keyedit-0.3 to
> >edit key bindings, the "Key" field on the user interface of the program
> >is not shown correctly, as can be seen in the attached image. For
> >instance, the default key binding for launching Eterm is shown as
> >
> >     Key: [EMAIL PROTECTED]
> >     Modifier: CTRL+ALT
> >     Command: exec Eterm
> >
> >Has anybody else noticed this behaviour? Any clues?
> >
> Strange. What does "eesh get_keybindings" say?

I have found the bug: a local array variable is allocated with
the wrong size. The attached patch should correct the error.
With the patch applied e16keyedit works as expected now.

Regards.

Romildo
diff -u /var/tmp/e16keyedit-0.3.orig/viewer.c /var/tmp/e16keyedit-0.3/viewer.c
--- /var/tmp/e16keyedit-0.3.orig/viewer.c       2006-03-22 14:46:42.000000000 
-0300
+++ /var/tmp/e16keyedit-0.3/viewer.c    2006-04-04 16:32:41.000000000 -0300
@@ -704,7 +704,7 @@
           /* stuff[2] = action */
           /* stuff[3] = params */
           char                key[128], *params;
-          const char         *stuff[2];
+          const char         *stuff[4];
           int                 len;
 
           if (strlen(buf) < 1)

Reply via email to