On Mon, 2006-09-18 at 13:28 +0200, Thomas Necker wrote:
> I encountered a problem with the use of "sizeof" in the pSOS skin.
> E.g., in q_send the last parameter is "u_long msgbuf" and its size is
> passed to q_send_internal as "sizeof(msgbuf)". However, since arrays are
> always passed by reference this sizeof call yields 4 instead of the expected
> 16. This results in only 4 bytes being sent instead of the whole message. The
> call must be changed, e.g., to "sizeof(u_long)".
> The same problem exists for the following calls: q_receive, q_broadcast,
> Xenomai-core mailing list
Xenomai-core mailing list