Felix von Leitner <[EMAIL PROTECTED]> wrote:
> Proposed fix (in paste.c):
>
>   static char dummy_closed;
>   static char dummy_endlist;
>   #define CLOSED ((FILE*)&dummy_closed)
>   #define ENDLIST ((FILE*)&dummy_endlist)

The C standard allows undefined behavior for such casts, since the
dummy variables need not be aligned the way a FILE must be aligned.
Better to use a separate flag variable.


paul


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to