<div dir="ltr"><div>Hello all, i've found a bug in the athena widget lib but i dont know who is responsible for this package, or where to send this information.<br></div><div>i decided to give this information to xorg-devel. i hope someone with more knowledge will create a patch and create a new version of this library.<br>
</div><div><div><br></div><div>libxaw: SimpleMenu.c<br></div><div>the last element will be copied to not allocated space after the array end.<br></div><div>the first element will be overwritten and not moved to the second.<br>
<br></div><div>1065    <br>1066        next_child = NULL;<br>1067        for (child = smw->composite.children + smw->composite.num_children,<br>1068         i = smw->composite.num_children; i > 0; i--, child--) {<br>
1069        if (next_child != NULL)<br>1070            *next_child = *child;<br>1071        next_child = child;<br>1072        }<br>1073        *child = (Widget)smw->simple_menu.label;<br><br><br></div><div>this should do nothing more than:<br>
<br>child = smw->composite.children;<br>int n = smw->composite.num_children;<br>memmove(  child+1, child, (n-1) * sizeof(Widget) );<br></div><div>child[0] = (Widget)smw->simple_menu.label;<br><br><br><br></div></div>
</div>