Menu

#31 64-bit patch mangled in lesstif 0.95.2

closed
nobody
Xm library (13)
5
2009-09-12
2009-08-28
No

The current lesstif 0.95.2 release causes nedit 5.5 to bus error when pasting text under i386-apple-darwin and powerpc-apple-darwin while x86_64-apple-darwin works fine. This is because a set of braces from the original debian patches for fixing the 64-bit problems in lesstif were omitted when the patch was applied to lesstif cvs. The following change restores the missing braces and eliminates the bus errors while allowing nedit in all three architectures to paste text.

--- lesstif-0.95.2/lib/Xm-2.1/CutPaste.c.org 2009-08-27 21:44:12.000000000 -0400
+++ lesstif-0.95.2/lib/Xm-2.1/CutPaste.c 2009-08-27 21:45:25.000000000 -0400
@@ -1028,9 +1028,11 @@
/* XChangeProperty expects a buffer of longs when receiving 32 bits
data, MEUHH */
if (sizeof(long) != 4)
+ {
convert_buf = XtMalloc(len * sizeof(long));
for (i = 0; i < len; i++)
convert_buf[i] = data[i];
+ }
break;

case 16:

Discussion

  • Paul Gevers

    Paul Gevers - 2009-08-28

    Agreed. Will commit this patch soon, together with an other patch available from Fedora.

     
  • Paul Gevers

    Paul Gevers - 2009-08-28
    • labels: 103129 --> Xm library
    • status: open --> pending
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.