> I have just discovered the gcc "-fwritable-strings" compiler switch. > This effectively eliminated the problem which I submitted earlier. > My apologies. Nevertheless, the bug is still in your code, not in the compiler - even if this option was not available. Regards, Martin