On Sat, Jun 11, 2011 at 01:15:42AM +0300, Lauri Kentt? wrote:
Second, the ok output message also dereferences pdst by printing it
That's not true. "%s" formats null pointers as "(null)" instead of dereferencing anything.
That isn't a requirement of the C language, there are many implemenations which will fault.
David